mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-06-06 09:31:16 -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) &&
|
||||
Regex.IsMatch(
|
||||
content,
|
||||
@"(?=\b|\s|^)" +
|
||||
@"(?:\b|\s|^)" +
|
||||
Regex.Escape(_text) +
|
||||
@"(?=\b|\s|$)",
|
||||
@"(?:\b|\s|$)",
|
||||
RegexOptions.IgnoreCase | RegexOptions.CultureInvariant
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue