Skip to content
New issue

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

Fix edge case issues with replacement text syntax #318

Closed
slevithan opened this issue Jan 10, 2021 · 0 comments
Closed

Fix edge case issues with replacement text syntax #318

slevithan opened this issue Jan 10, 2021 · 0 comments
Labels

Comments

@slevithan
Copy link
Owner

In XRegExp replacement text syntax, all of the following should throw errors but currently don't:

  • Unescaped $ at the end of the string (no following character).
  • $ (dollar space).
  • Named backferences with leading or trailing spaces, e.g. $< name> or ${name }.
  • Numbered backferences using brace syntax with leading or trailing spaces, e.g. $< 1> or ${1 }.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant