lib/i18n/tasks/scanners/pattern_scanner.rb in i18n-tasks-0.9.17 vs lib/i18n/tasks/scanners/pattern_scanner.rb in i18n-tasks-0.9.18
- old
+ new
@@ -90,10 +90,14 @@
def default_pattern
# capture only the first argument
/
#{translate_call_re} [\( ] \s* (?# fn call begin )
- (#{literal_re}) (?# capture the first argument)
+ (#{first_argument_re}) (?# capture the first argument)
/x
+ end
+
+ def first_argument_re
+ literal_re
end
end
end