Closed janbarasek closed 2 years ago
Could you send a pull request?
Btw, what's the point of the minus character in charlist?
The minus sign could be inserted as a user input in the administration.
I think it should always be ensured that the function never returns two consecutive minus signs, even if it gets the wrong input.
I think the current behaviour is correct.
Version: v3.2.7
Bug Description
Helper
webalize
with charlist parameter-
generates duplicated minus in output:Steps To Reproduce
Expected Behavior
The output string should never contain two minus signs next to each other.
For example, when writing articles and an improperly chosen input string, it is possible to generate several minuses side by side.
Possible Solution
Add this regex:
Thanks.