-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use MatchesSimpleExpression instead of janky regex
- Loading branch information
Showing
2 changed files
with
9 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
using System.Text.RegularExpressions; | ||
|
||
namespace Contentless; | ||
namespace Contentless; | ||
|
||
public class OverrideInfo { | ||
|
||
public readonly Regex Regex; | ||
public readonly string Expression; | ||
public readonly Override Override; | ||
|
||
public OverrideInfo(Regex regex, Override over) { | ||
this.Regex = regex; | ||
public OverrideInfo(string expression, Override over) { | ||
this.Expression = expression; | ||
this.Override = over; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters