lib/aigu/ios_exporter.rb in aigu-0.4.1 vs lib/aigu/ios_exporter.rb in aigu-0.4.2

- old
+ new

@@ -75,10 +75,10 @@ # This takes a string and replaces Android interpolations to iOS interpolations. # Note that %s works on iOS but it doesn’t work with NSString because they’re objects. # To make it work with objects, we need to convert all %s to %@. # Example: 'Android interpolation %s or %1$s' => 'iOS interpolation %@ or %1$@'. def replace_string_interpolations(string) - string.gsub(/%([0-9]+\$)?s/, '%\\1@') + string.gsub(/%([0-9]+\$)?@/, '%\\1s') end # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/MethodLength, Metrics/BlockNesting def parse_stringsdict_file(file_content) # Quite custom parsing to reuse same logic on importer