We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug unescape function produce incorrect result when the intermediate string generated includes an escape sequence.
unescape
Examples
const validator = require('validator'); validator.unescape(validator.escape('<')) // Expected: '<' // Actual: '<'
Demo: Stackblitz
Additional context Validator.js version: 13.6.0 Node.js version: 14.16.0 OS platform: linux, macOS
Suggested solution & -> & transform should be the last transform in unescape.
& -> &
The text was updated successfully, but these errors were encountered:
I submitted a PR that fixes this issue (#1835) .
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
unescape
function produce incorrect result when the intermediate string generated includes an escape sequence.Examples
Demo: Stackblitz
Additional context
Validator.js version: 13.6.0
Node.js version: 14.16.0
OS platform: linux, macOS
Suggested solution
& -> &
transform should be the last transform inunescape
.Demo: Stackblitz
The text was updated successfully, but these errors were encountered: