Fix CMP/DC parsing, strip DC down

This commit is contained in:
Matt Nadareski
2020-06-12 15:42:47 -07:00
parent daa63a5e8a
commit aa4f669bb9
3 changed files with 17 additions and 17 deletions

View File

@@ -2843,8 +2843,8 @@ namespace SabreTools.Library.Tools
// Now we get each string, divided up as cleanly as possible
string[] matches = Regex
//.Matches(s, @"([^\s]*string.Empty[^string.Empty]+string.Empty[^\s]*)|[^string.Empty]?\w+[^string.Empty]?")
.Matches(s, @"[^\sstring.Empty]+|string.Empty[^string.Empty]*string.Empty")
//.Matches(s, @"([^\s]*""[^""]+""[^\s]*)|[^""]?\w+[^""]?")
.Matches(s, @"[^\s""]+|""[^""]*""")
.Cast<Match>()
.Select(m => m.Groups[0].Value)
.ToArray();