fix regexp in reltag toggle
should account for all special characters while preserving newlines
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user