IFClite TypeScript API
    Preparing search index...

    Function trimSelectorWhitespace

    • String.trim() strips every Unicode space character, including U+00A0 (no-break space) — which this tokenizer treats as ordinary WORD content, not whitespace (#4946 review). Trim only the six characters isSpace recognizes, so a selector carrying an NBSP is not silently rewritten into a different one before it ever reaches the parser.

      Parameters

      • text: string

      Returns string