quotedWith now takes in an additional parameter- isAllowed. It's now the caller's responsibility to indicate which characters are allowed within the string generated by quotedWith (the delimiter check is still done by quotedWith).
For basic strings (double quote), control characters, as well as backslashes are disallowed.
For literal strings (single quote), only control characters are disallowed.
Fixes #374
quotedWith
now takes in an additional parameter-isAllowed
. It's now the caller's responsibility to indicate which characters are allowed within the string generated byquotedWith
(the delimiter check is still done byquotedWith
).For basic strings (double quote), control characters, as well as backslashes are disallowed.
For literal strings (single quote), only control characters are disallowed.