Skip to content

Commit

Permalink
bugfix: #Sexp_Variables can be followed by #Cutscenes
Browse files Browse the repository at this point in the history
  • Loading branch information
Achille44 committed Sep 3, 2022
1 parent 591d23a commit 8006d8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FreeSpace2TranslationTools/Services/Regexp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static class Regexp
private static readonly Regex _StringParameters = new("\"(.*?)\"", RegexOptions.Compiled);
public static Regex StringParameters { get => _StringParameters; }

private static readonly Regex _BeforeSexp = new("(#Fiction Viewer|#Command Briefing)", RegexOptions.Multiline | RegexOptions.Compiled);
private static readonly Regex _BeforeSexp = new("(^.*?#Cutscenes|#Fiction Viewer|#Command Briefing)", RegexOptions.Multiline | RegexOptions.Compiled);
public static Regex BeforeSexp { get => _BeforeSexp; }

private static readonly Regex _SexpVariablesSection = new("#Sexp_variables.*?(#Fiction Viewer|#Command Briefing)", RegexOptions.Singleline | RegexOptions.Compiled);
Expand All @@ -103,7 +103,7 @@ public static class Regexp
private static readonly Regex _VariableIds = new(@"^\t\t\d", RegexOptions.Multiline | RegexOptions.Compiled);
public static Regex VariableIds { get => _VariableIds; }

private static readonly Regex _EndOfVariablesSection = new(@"\)\r\n\r\n(#Fiction Viewer|#Command Briefing|#Cutscenes)", RegexOptions.Multiline | RegexOptions.Compiled);
private static readonly Regex _EndOfVariablesSection = new(@"\)\r\n\r\n(#Fiction Viewer|#Command Briefing|.*?#Cutscenes)", RegexOptions.Multiline | RegexOptions.Compiled);
public static Regex EndOfVariablesSection { get => _EndOfVariablesSection; }

private static readonly Regex _EventsSection = new(@"#Events.*?\r\n\r\n", RegexOptions.Singleline | RegexOptions.Compiled);
Expand Down

0 comments on commit 8006d8f

Please sign in to comment.