summaryrefslogtreecommitdiff
path: root/lib/jcode.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jcode.rb')
-rw-r--r--lib/jcode.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/jcode.rb b/lib/jcode.rb
index e0a2a99fce..ab6ab60701 100644
--- a/lib/jcode.rb
+++ b/lib/jcode.rb
@@ -59,13 +59,13 @@ class String
def end_regexp
case $KCODE[0]
when ?s, ?S
- /#{PATTERN_SJIS}$/o
+ /#{PATTERN_SJIS}$/on
when ?e, ?E
- /#{PATTERN_EUC}$/o
+ /#{PATTERN_EUC}$/on
when ?u, ?U
- /#{PATTERN_UTF8}$/o
+ /#{PATTERN_UTF8}$/on
else
- /.$/o
+ /.$/on
end
end