unescapeStringLiteral
Function: unescapeStringLiteral()
unescapeStringLiteral(
literal):string
Defined in: packages/ql/src/query.ts:48
Strip the quotes of a WebdaQL string literal and unescape its contents.
Processes the inner text (between outer quotes) with these rules, applied left-to-right:
\\→\(escaped backslash)- `` followed by the literal's quote char → the quote char (backslash-escaped quote)
- the quote char doubled → one quote char (SQL-style doubled quote)
- any other
\x→\xkept verbatim (so LIKE's\%and\_reach likeToRegex unchanged)
Parameters
literal
string
the literal including its surrounding quotes
Returns
string
the literal value