diff --git a/FreeSpace2TranslationTools/Services/XstrManager.cs b/FreeSpace2TranslationTools/Services/XstrManager.cs index 5aae288..d3d84a5 100644 --- a/FreeSpace2TranslationTools/Services/XstrManager.cs +++ b/FreeSpace2TranslationTools/Services/XstrManager.cs @@ -839,7 +839,7 @@ private string PrepareNewSexpForVariables(List VariableList) /// private string ConvertHardcodedHudTextToVariables(string content) { - MatchCollection textMatches = Regex.Matches(content, "(\\( hud-set-text.*?\".*?\".*?\")(.*?)(\".*?\\))", RegexOptions.Singleline); + MatchCollection textMatches = Regex.Matches(content, "(\\( (?:hud-set-text|hud-set-directive).*?\".*?\".*?\")(.*?)(\".*?\\))", RegexOptions.Singleline); List variableList = new(); List hudTextList = new();