-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected behavior with a bullet point character •
#243
Comments
Currently with two iterators you can't trigger special This is a workaround: https://godbolt.org/z/Kz5arc1qE Not sure how to do it nicely, your other options are in wrapper.hpp lines 156-184 Keeping this open, if I found a better solution. |
Thank you for the quick response! |
It's actually based on type of argument's iterator. You can always take |
Say, I have a string
I would like to substitute any number of consecutive blank characters,
-
, or•
with just a single space. I tried the following:But this results in
I'm including
<ctre-unicode.hpp>
.Is this a bug or the intended behavior?
At first, I thought that maybe the problem is with putting a
•
inside[]
, because maybe[]
only accepts single-byte characters and escape sequences, but I get the same output with(?:[\s\-]|•)+
as with the original[\s\-•]+
. And\P{L}+
results in, what I'm assuming is, removal of only some of the bytes comprising the•
characters:Here's a godbolt link.
The text was updated successfully, but these errors were encountered: