docs: escape and unescape by ovarn · Pull Request #2325 · validatorjs/validator.js

Conversation

@ovarn

The doc for the escape and unescape doesn't match the implementation:

.replace(/\\/g, '\')
.replace(/`/g, '`'));

.replace(/\/g, '\\')
.replace(/`/g, '`')

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)
  • References provided in PR (where applicable)

@ovarn ovarn changed the title Fix escape and unescape docs docs: escape and unescape

Oct 14, 2023

@codecov

WikiRik

@ovarn

Sorry @WikiRik, I unintentionally clicked the "Re-request review".

WikiRik

rubiin