Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Escape special REGEX characters. Closes #884

  • Loading branch information...
commit 31aa19341cbb64fe5505c5a2d9556e36cd1a39d3 1 parent b3ec9df
Brendan Abbott brendo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  symphony/assets/symphony.tags.js
2  symphony/assets/symphony.tags.js
View
@@ -67,7 +67,7 @@
// Multiple
else {
- var exp = new RegExp('^' + tag + '$', 'i'),
+ var exp = new RegExp('^' + tag.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") + '$', 'i'),
tags = value.split(/,\s*/),
removed = false;
Please sign in to comment.
Something went wrong with that request. Please try again.