json-fs-query
    Preparing search index...

    Function maskStrings

    • Replace every quoted string in a query with a placeholder holding its value (with the escapes applied), so that nothing inside a string (a keyword, a quote, and, a ]) can be matched by the find* parsers.

      Parameters

      • query: string

      Returns string

      For an unclosed string, comment or bracket, or a NUL or SOH character outside a string (which could otherwise pass for a placeholder).