platform-bible-utils
    Preparing search index...

    Variable SELECTABLE_INVISIBLE_CHAR_OR_WHITESPACE_CLASSConst

    SELECTABLE_INVISIBLE_CHAR_OR_WHITESPACE_CLASS: "‍        ​‌⁠‎‏" = '\u200d\u2003\u2002\u0020\u00a0\u202f\u2009\u200a\u3000\u200b\u200c\u2060\u200e\u200f'

    The contents (without surrounding [ ]) of a regex character class matching Paratext-9-selectable invisible characters and white space characters.

    These are the characters listed in Paratext 9's "Whitespace and invisible characters drop-down" that the user can insert into the text:

    Code point Name
    U+200D Zero-width joiner
    U+2003 Em space
    U+2002 En space
    U+0020 Space
    U+00A0 No-break space
    U+202F Narrow no-break space
    U+2009 Thin space
    U+200A Hair space
    U+3000 Ideographic space
    U+200B Zero-width space
    U+200C Zero-width non-joiner
    U+2060 Word joiner
    U+200E Left-to-right mark
    U+200F Right-to-left mark

    Usage in regex character classes: wrap this in [ ] to create a character class, e.g.:

    const regex = new RegExp(`[${SELECTABLE_INVISIBLE_CHAR_OR_WHITESPACE_CLASS}]`);
    

    Note: more white space characters are allowed in Paratext 9 but are not selectable in the UI and are not supported as thoroughly as these characters are. See isWhiteSpace for more information.

    This corresponds to the character set used by CharExtensions.IsInvisibleCharOrWhitespace from ParatextData.dll