fix regexp in reltag toggle

should account for all special characters while preserving newlines
This commit is contained in:
Toks
2013-04-12 18:00:57 -04:00
parent 3ccad2cc18
commit 5843b3037f
2 changed files with 6 additions and 1 deletions

View File

@@ -74,6 +74,10 @@
return filtered;
}
Danbooru.regexp_escape = function(string) {
return string.replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1");
}
$.fn.selectRange = function(start, end) {
return this.each(function() {
if (this.setSelectionRange) {