Skip to content

Fix quote ' not matching in htmlContain* functions#1768

Merged
snoyberg merged 3 commits intoyesodweb:masterfrom
SupercedeTech:quote-in-test
May 11, 2022
Merged

Fix quote ' not matching in htmlContain* functions#1768
snoyberg merged 3 commits intoyesodweb:masterfrom
SupercedeTech:quote-in-test

Conversation

@jappeace
Copy link
Copy Markdown
Contributor

@jappeace jappeace commented May 10, 2022

This sometimes occurred in our code base when generating
names with the fakedata package, someone named o'conner
randomly fails a particular test.

Also add tests for the other matching function and fixed them.
Furthermore, I added logging of the matches as well.

Before submitting your PR, check that you've:

After submitting your PR:

  • Update the Changelog.md file with a link to your PR
  • Check that CI passes (or if it fails, for reasons unrelated to your change, like CI timeouts)

jappeace added 3 commits May 10, 2022 16:20
This sometimes occured in our code base when generating
names with the fakedata package, someone named o'conner
randomly fails a particular test.

Also add tests for the other matching function and fixed them.

Furthermore, I snuck in logging of the matches as well.
Copy link
Copy Markdown
Member

@snoyberg snoyberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test case demonstrates the problem nicely!

@snoyberg snoyberg merged commit 50c439d into yesodweb:master May 11, 2022
@jezen jezen deleted the quote-in-test branch May 11, 2022 11:13
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.

2 participants