Skip to content

Commit

Permalink
Only react to Localization keyword at start of line (#2786)
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan authored and Olympic1 committed Jun 17, 2019
1 parent e21f8c1 commit 74ff9af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Netkan/Transformers/LocalizationsTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public IEnumerable<Metadata> Transform(Metadata metadata)
private static readonly ILog log = LogManager.GetLogger(typeof(LocalizationsTransformer));

private static readonly Regex localizationRegex = new Regex(
@"\bLocalization\b.*?{(?<contents>.*?([-a-zA-Z]+.*?{.*?}.*?)*?)}",
@"^\s*Localization\b.*?{(?<contents>.*?([-a-zA-Z]+.*?{.*?}.*?)*?)}",
RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline
);
private static readonly Regex localeRegex = new Regex(
Expand Down

0 comments on commit 74ff9af

Please sign in to comment.