Permalink
Browse files

Merge pull request #10762 from vipulnsward/change_compatibility

compatability => compatibility
  • Loading branch information...
2 parents ddaeb11 + 7f02cab commit 50e89373c5e0b6ad2878346286277666752497b6 @carlosantoniodasilva carlosantoniodasilva committed May 26, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 activesupport/lib/active_support/multibyte/unicode.rb
@@ -145,7 +145,7 @@ def decompose(type, codepoints)
ncp << (HANGUL_TBASE + tindex) unless tindex == 0
decomposed.concat ncp
# if the codepoint is decomposable in with the current decomposition type
- elsif (ncp = database.codepoints[cp].decomp_mapping) and (!database.codepoints[cp].decomp_type || type == :compatability)
+ elsif (ncp = database.codepoints[cp].decomp_mapping) and (!database.codepoints[cp].decomp_type || type == :compatibility)
decomposed.concat decompose(type, ncp.dup)
else
decomposed << cp
@@ -263,9 +263,9 @@ def normalize(string, form=nil)
when :c
compose(reorder_characters(decompose(:canonical, codepoints)))
when :kd
- reorder_characters(decompose(:compatability, codepoints))
+ reorder_characters(decompose(:compatibility, codepoints))
when :kc
- compose(reorder_characters(decompose(:compatability, codepoints)))
+ compose(reorder_characters(decompose(:compatibility, codepoints)))
else
raise ArgumentError, "#{form} is not a valid normalization variant", caller
end.pack('U*')

0 comments on commit 50e8937

Please sign in to comment.