Avoid style warning Use assert_match instead of assert ...include?
#3820
Unanswered
alexreg
asked this question in
Writing Formulae/Casks
Replies: 1 comment 4 replies
-
Can you post what you're working on so we can take a look? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm getting the style warning
Use assert_match instead of assert ...include?
. However, this warning is inappropriate in this particular case, since the string I'm searching in might not be valid UTF-8. Of course, usinginclude?
works in either case. What's the recommended way to avoid this warning?Beta Was this translation helpful? Give feedback.
All reactions