File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ async Task<IImmutableSet<CultureInfo>> Inner()
5959 }
6060
6161 private static readonly Regex HotkeyPrefixRegex = new ( "&([a-zA-Z0-9])" , RegexOptions . Compiled ) ;
62- private static readonly Regex PlaceholderRegex = new ( "{([a-zA-Z0-9]+)}" , RegexOptions . Compiled ) ;
63- private static readonly Regex PlaceholderReverseRegex = new ( "<placeholder>([a-zA-Z0-9]+)</placeholder>" , RegexOptions . Compiled ) ;
62+ private static readonly Regex PlaceholderRegex = new ( "{([a-zA-Z0-9: ]+)}" , RegexOptions . Compiled ) ;
63+ private static readonly Regex PlaceholderReverseRegex = new ( "<placeholder>([a-zA-Z0-9: ]+)</placeholder>" , RegexOptions . Compiled ) ;
6464
6565 public async Task < string [ ] > Translate (
6666 string [ ] sourceTexts ,
@@ -101,4 +101,4 @@ public async Task<string[]> Translate(
101101 throw new ResXTranslatorTranslationFailedException ( exception ) ;
102102 }
103103 }
104- }
104+ }
You can’t perform that action at this time.
0 commit comments