summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/jcode.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jcode.rb b/lib/jcode.rb
index 3ce692fc50..e566f96f60 100644
--- a/lib/jcode.rb
+++ b/lib/jcode.rb
@@ -5,7 +5,7 @@ class String
printf STDERR, "feel free for some warnings:\n" if $VERBOSE
def _regex_quote(str)
- str.gsub(/[][.\\|*?+{}()]/n){|s|
+ str.gsub(/[][.\\|*?+{}()]/){|s|
if s == "\\" then "\\\\" else "\\\\#{s}" end
}
end