lib/i18n_screwdriver.rb in i18n_screwdriver-10.2.1 vs lib/i18n_screwdriver.rb in i18n_screwdriver-10.3.0

- old
+ new

@@ -53,12 +53,12 @@ string.scan(/_\((:[a-z][a-z0-9_]*)\)/).flatten end def self.grab_js_texts_to_be_translated(string) [].tap do |texts| - texts.concat(string.scan(/\bI18n\.screw\(?\s*(?<!\\)"(.*?)(?<!\\)"/).map{ |v| unescape_string(v[0]) }) - texts.concat(string.scan(/\bI18n\.screw\(?\s*(?<!\\)'(.*?)(?<!\\)'/).map{ |v| unescape_string(v[0]) }) - texts.concat(string.scan(/\bI18n\.screw\(?\s*(?<!\\)`(.*?)(?<!\\)`/).map{ |v| unescape_string(v[0]) }) + texts.concat(string.scan(/\bI18n\.screw\w*\(?\s*(?<!\\)"(.*?)(?<!\\)"/).map{ |v| unescape_string(v[0]) }) + texts.concat(string.scan(/\bI18n\.screw\w*\(?\s*(?<!\\)'(.*?)(?<!\\)'/).map{ |v| unescape_string(v[0]) }) + texts.concat(string.scan(/\bI18n\.screw\w*\(?\s*(?<!\\)`(.*?)(?<!\\)`/).map{ |v| unescape_string(v[0]) }) end end def self.in_utf8(hash) {}.tap do |result|