lib/i18n_screwdriver.rb in i18n_screwdriver-10.1.0 vs lib/i18n_screwdriver.rb in i18n_screwdriver-10.2.0
- old
+ new
@@ -42,11 +42,11 @@
end
end
def self.grab_texts_to_be_translated(string)
[].tap do |texts|
- texts.concat(string.scan(/_\((?<!\\)"(.*?)(?<!\\)"\)/).map{ |v| unescape_string(v[0]) })
- texts.concat(string.scan(/_\((?<!\\)'(.*?)(?<!\\)'\)/).map{ |v| unescape_string(v[0]) })
+ texts.concat(string.scan(/_\((?<!\\)"(.*?)(?<!\\)"/).map{ |v| unescape_string(v[0]) })
+ texts.concat(string.scan(/_\((?<!\\)'(.*?)(?<!\\)'/).map{ |v| unescape_string(v[0]) })
end
end
def self.grab_symbols_to_be_translated(string)
string.scan(/_\((:[a-z][a-z0-9_]*)\)/).flatten