Skip to content

Commit

Permalink
compatability => compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
vipulnsward committed May 26, 2013
1 parent ab28baf commit 7f02cab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activesupport/lib/active_support/multibyte/unicode.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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*')
Expand Down

0 comments on commit 7f02cab

Please sign in to comment.