starrypop / Natural-Clay

Some natural clay colors and variants for every ceramic block
0 stars 0 forks source link

assets/naturalclaylang/en.json Fails to load due to string containing `)` #10

Closed FatigueDev closed 2 months ago

FatigueDev commented 4 months ago

https://github.com/starrypop/Natural-Clay/blob/dac266a1111ae9e06d6170ea7f0684009ab19da2/assets/naturalclay/lang/en.json#L217

Line 217 contains a closing bracket which caused someone to fail to create their world.

'^naturalclay:block-salvepot-(.*)-hardwaxresiduecovered)$' at offset 55. Too many )'s.
   at System.Text.RegularExpressions.RegexParser.ScanRegex()
   at System.Text.RegularExpressions.RegexParser.Parse(String pattern, RegexOptions options, CultureInfo culture)
   at System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, TimeSpan matchTimeout, CultureInfo culture)
   at System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options)
   at Vintagestory.API.Config.TranslationService.LoadEntry(Dictionary2 entryCache, Dictionary2 regexCache, Dictionary2 wildcardCache, KeyValuePair2 entry, String domain) in VintagestoryApi\Localization\TranslationService.cs:line 536
   at Vintagestory.API.Config.TranslationService.LoadEntries(Dictionary2 entryCache, Dictionary2 regexCache, Dictionary2 wildcardCache, Dictionary2 entries, String domain) in VintagestoryApi\Localization\TranslationService.cs:line 518
   at Vintagestory.API.Config.TranslationService.Load(Boolean lazyLoad) in VintagestoryApi\Localization\TranslationService.cs:line 82