Skip to content

Commit

Permalink
Changed Regex to verbatim string literal
Browse files Browse the repository at this point in the history
Co-authored-by: Cody Robibero <[email protected]>
  • Loading branch information
MisterMcDuck and crobibero authored Nov 7, 2023
1 parent e17a68c commit 39fcd86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static String PreprocessTitle(String path)
// Only replaces if the name ends with a parenthesis to hopefully avoid mangling titles with parens (e.g. Evangelion 1.11 You Are (Not) Alone)
input = Regex.Replace(
input.Trim(),
"\\((\\w|\\d|\\s)+\\)$", String.Empty);
@"\((\w|[0-9]|\s)+\)$", String.Empty);


return input;
Expand Down

0 comments on commit 39fcd86

Please sign in to comment.