mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
normalize.rb: fix syntax error
* lib/unicode_normalize/normalize.rb (normalized): fix syntax error, `when` clase allows `*` but not `**`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5ab3fe5fb5
commit
9b559f194c
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ module UnicodeNormalize
|
|||
end
|
||||
when Encoding::US_ASCII
|
||||
true
|
||||
when **UNICODE_ENCODINGS
|
||||
when *UNICODE_ENCODINGS
|
||||
normalized? string.encode(Encoding::UTF_8), form
|
||||
else
|
||||
raise Encoding::CompatibilityError, "Unicode Normalization not appropriate for #{encoding}"
|
||||
|
|
Loading…
Reference in a new issue