Skip to content

Commit b9219dd

Browse files
committed
#191 - use compiled regex
1 parent 84c5c04 commit b9219dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Domain/HydraScript.Domain.FrontEnd/Lexer/Token.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public override string ToString()
1616
return $"{Type} {Segment}: {displayValue}";
1717
}
1818

19-
[GeneratedRegex("\"")]
19+
[GeneratedRegex("\"", RegexOptions.Compiled)]
2020
private static partial Regex Quotes();
2121
}
2222

tests/HydraScript.UnitTests/Domain/FrontEnd/DummyContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ namespace HydraScript.UnitTests.Domain.FrontEnd;
55

66
public partial class DummyContainer : IGeneratedRegexContainer
77
{
8-
[GeneratedRegex(TokenInput.Pattern)]
8+
[GeneratedRegex(TokenInput.Pattern, RegexOptions.Compiled)]
99
public static partial Regex Regex { get; }
1010
}

0 commit comments

Comments
 (0)