Skip to content

Commit

Permalink
allow [] in the non-strict scanner pattern #127
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Feb 5, 2015
1 parent be2b068 commit 0c47731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n/tasks/scanners/base_scanner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def strip_literal(literal)

VALID_KEY_CHARS = /[-\w.?!;]/
VALID_KEY_RE_STRICT = /^#{VALID_KEY_CHARS}+$/
VALID_KEY_RE = /^(#{VALID_KEY_CHARS}|[:\#{@}])+$/
VALID_KEY_RE = /^(#{VALID_KEY_CHARS}|[:\#{@}\[\]])+$/

def valid_key?(key, strict = false)
return false if @key_filter && @key_filter_pattern !~ key
Expand Down

0 comments on commit 0c47731

Please sign in to comment.