Skip to content

Commit

Permalink
Adds : to VALID_KEY_CHARS for ruby_key_literals. Fixes glebm#207
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Anderson committed Nov 1, 2016
1 parent e8db4a1 commit b766e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n/tasks/scanners/ruby_key_literals.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def strip_literal(literal)
literal
end

VALID_KEY_CHARS = /(?:[[:word:]]|[-.?!;À-ž])/
VALID_KEY_CHARS = /(?:[[:word:]]|[-.?!:;À-ž])/
VALID_KEY_RE = /^#{VALID_KEY_CHARS}+$/

def valid_key?(key)
Expand Down

0 comments on commit b766e67

Please sign in to comment.