Skip to content

Commit

Permalink
Added reference to issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus committed Oct 30, 2021
1 parent 1155582 commit d799421
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/unescape.js
Expand Up @@ -10,4 +10,7 @@ export default function unescape(str) {
.replace(/\/g, '\\')
.replace(/`/g, '`')
.replace(/&/g, '&'));
// & replacement has to be the last one to prevent
// bugs with intermediate strings containing escape sequences
// See: https://github.com/validatorjs/validator.js/issues/1827
}

0 comments on commit d799421

Please sign in to comment.