diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-04-09 09:58:00 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-04-09 09:58:00 +0000 |
commit | 2b255619648eec600db99260f293167f1b0faed7 (patch) | |
tree | 3a5d00ecbc12716bcce09022afcb553258e323cb /lib/jcode.rb | |
parent | e32da15f48189cfba02a9be2e6572161d91b3122 (diff) |
1.1b9_09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/jcode.rb')
-rw-r--r-- | lib/jcode.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/jcode.rb b/lib/jcode.rb index d7c16a173c..6d71518c70 100644 --- a/lib/jcode.rb +++ b/lib/jcode.rb @@ -17,7 +17,7 @@ class String elsif $KCODE =~ /^e/i self =~ /[\xa1-\xfe][\xa1-\xfe]/n else - FALSE + false end end @@ -42,7 +42,7 @@ class String if self[0..-2] == to[0..-2] first = self[-2].chr for c in self[-1] .. to[-1] - if first+c.chr.mbchar? + if (first+c.chr).mbchar? yield self[0..-2]+c.chr end end |