We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1155582 commit d799421Copy full SHA for d799421
src/lib/unescape.js
@@ -10,4 +10,7 @@ export default function unescape(str) {
10
.replace(/\/g, '\\')
11
.replace(/`/g, '`')
12
.replace(/&/g, '&'));
13
+ // & replacement has to be the last one to prevent
14
+ // bugs with intermediate strings containing escape sequences
15
+ // See: https://github.com/validatorjs/validator.js/issues/1827
16
}
0 commit comments