diff --git a/lib/hyper_resource/links.rb b/lib/hyper_resource/links.rb index e647a92..93bfe0e 100644 --- a/lib/hyper_resource/links.rb +++ b/lib/hyper_resource/links.rb @@ -30,7 +30,7 @@ def []=(rel, link) end ## Underscore all non-word characters. - underscored_names = names.map{|n| n.gsub(/[^a-zA-Z_]/, '_')} + underscored_names = names.map{|n| n.gsub(/[^[:word:]]/, '_')} names = (names + underscored_names).uniq ## Register this link under every name we've come up with.