mirror of https://github.com/tycrek/ass
ZWS will still show original filename, otherwise title would be blank Merge branch '0.14.0/generated-id-in-viewer' into 0.14.0/stagepull/187/head
commit
e72892fd86
@ -1,3 +1,4 @@
|
||||
import lengthGen from './lengthGen';
|
||||
const zeroWidthChars = ['\u200B', '\u200C', '\u200D', '\u2060'];
|
||||
export default ({ length }: { length: number }) => lengthGen(length, zeroWidthChars);
|
||||
export const checkIfZws = (str: string) => str.split('').every(char => zeroWidthChars.includes(char));
|
||||
|
Loading…
Reference in new issue