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
handle/handleize filter doesn't return a Liquid-consistent value #424
Comments
I'm happy to write a PR for this, for the record, but I don't understand the regex magic that's happening in there. If I write this, I'm just gonna iterate the characters via a |
Please submit a PR, then we can review it Thanks |
Okay, this is not the PR or the actual function, but this is my logic. Before I go any further, let me know if this is fine. (It's over-commented for clarity.)
|
I fuzzed it and found a bug, which I corrected above ( Incidentally, on my desktop machine I ran it on 10,000 random 30-character strings and it took 5ms total. |
Just a quick not |
I did that at first. I can't check the last character with a |
Here, I re-wrote it with a
|
The example on this page of the Liquid doc claims this --
-- should output this:
In Fluid v2.2.8, it does not. It outputs:
The Fluid implementation seems to be missing:
The text was updated successfully, but these errors were encountered: