Skip to content
Browse files

Don't break unflattening if root key contains dash.

E.g. 'fr-CA'.

Thanks to Greg Vaughn for reporting this issue.
  • Loading branch information...
1 parent bbff560 commit e9828ff13a39f0e8d0c15745c5e953fd0e2582d6 @henrik committed Sep 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/yaml_flattener.vim
View
2 plugin/yaml_flattener.vim
@@ -22,7 +22,7 @@ execute 'rubyfile ' . s:libfile
ruby << EOF
def yaml_toggle_flatness
- if read_buffer.match(/^\w+\./)
+ if read_buffer.match(/^[\w-]+\./)
replace_buffer YAMLator.new(read_buffer).to_nested_yaml
else
replace_buffer YAMLator.new(read_buffer).to_flat_yaml

0 comments on commit e9828ff

Please sign in to comment.
Something went wrong with that request. Please try again.