Skip to content

Fix case insensitivity in ContainsProfanity#21

Open
BrianHendrickson wants to merge 1 commit intostephenhaunts:mainfrom
BrianHendrickson:main
Open

Fix case insensitivity in ContainsProfanity#21
BrianHendrickson wants to merge 1 commit intostephenhaunts:mainfrom
BrianHendrickson:main

Conversation

@BrianHendrickson
Copy link

ContainsProfanity case insensitivity does not work because RegexOptions.IgnoreCase does not apply when used to create a Regex object. This change fixes it by adding the option to the call to Regex.Matches instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant