Skip to content

Commit 41ab63e

Browse files
committed
Fix: Correct regex
1 parent 8e31b18 commit 41ab63e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/CodeOfChaos.Extensions/StringCaseExtensions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ namespace CodeOfChaos.Extensions;
88
// Code
99
// ---------------------------------------------------------------------------------------------------------------------
1010
public static partial class StringCaseExtensions {
11-
[GeneratedRegex("(?<=[a-z])(?=[A-Z])|[^a-zA-Z0-9]+|(?<=[^\\d])(?=\\d)|(?<=\\d)(?=[^\\d])")]
12-
// [GeneratedRegex("(?<=[a-z])(?=[A-Z0-9])|(?<=[0-9])(?=[a-zA-Z])|[^a-zA-Z0-9]+")]
11+
[GeneratedRegex("(?<=[a-z])(?=[A-Z0-9])|(?<=[0-9])(?=[a-zA-Z])|[^a-zA-Z0-9]+")]
1312
private static partial Regex NonAlphanumericRegex { get; }
1413

1514
// -----------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)