mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-06-07 09:54:50 -04:00
Fix regex in contains filter
This commit is contained in:
parent
504c3c53cd
commit
9453cac389
1 changed files with 2 additions and 2 deletions
|
@ -20,9 +20,9 @@ internal class ContainsMessageFilter : MessageFilter
|
||||||
!string.IsNullOrWhiteSpace(content) &&
|
!string.IsNullOrWhiteSpace(content) &&
|
||||||
Regex.IsMatch(
|
Regex.IsMatch(
|
||||||
content,
|
content,
|
||||||
@"(?=\b|\s|^)" +
|
@"(?:\b|\s|^)" +
|
||||||
Regex.Escape(_text) +
|
Regex.Escape(_text) +
|
||||||
@"(?=\b|\s|$)",
|
@"(?:\b|\s|$)",
|
||||||
RegexOptions.IgnoreCase | RegexOptions.CultureInvariant
|
RegexOptions.IgnoreCase | RegexOptions.CultureInvariant
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue