lib/i18n/tasks/scanners/pattern_scanner.rb in i18n-tasks-0.9.29 vs lib/i18n/tasks/scanners/pattern_scanner.rb in i18n-tasks-0.9.30
- old
+ new
@@ -10,10 +10,10 @@
class PatternScanner < FileScanner
include RelativeKeys
include OccurrenceFromPosition
include RubyKeyLiterals
- TRANSLATE_CALL_RE = /(?<=^|[^\w'\-.]|[^\w'\-]I18n\.|I18n\.)t(?:ranslate)?/
+ TRANSLATE_CALL_RE = /(?<=^|[^\w'\-.]|[^\w'\-]I18n\.|I18n\.)t(?:!|ranslate!?)?/
IGNORE_LINES = {
'coffee' => /^\s*#(?!\si18n-tasks-use)/,
'erb' => /^\s*<%\s*#(?!\si18n-tasks-use)/,
'es6' => %r{^\s*//(?!\si18n-tasks-use)},
'haml' => /^\s*-\s*#(?!\si18n-tasks-use)/,