mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 20:58:34 +01:00
ensure that SimpleEndCode doesn't end formatting codes with shorter names
This commit is contained in:
parent
6e2c2b3730
commit
6f05263980
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ namespace MLEM.Formatting.Codes {
|
|||
|
||||
/// <inheritdoc />
|
||||
public SimpleEndCode(Match match, Regex regex, string codeNameToEnd) : base(match, regex) {
|
||||
this.codeToEnd = new Regex($"<{codeNameToEnd}.*>");
|
||||
this.codeToEnd = new Regex($@"<{codeNameToEnd}(\W.*)?>");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
|
Loading…
Reference in a new issue