-
Notifications
You must be signed in to change notification settings - Fork 367
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
%{gsub:...}
throws error
#3410
Comments
Yeah both syntaxes should work. Thanks for reporting. |
No, please do not change this. |
See also:
|
Hmm, I don't remember the : syntax being intentionally one argument only but then it's been a while. |
I'd argue this is just documentation issue. The "one arguments" syntax likely has some merit, but then the error message is quite unintuitive |
IOW, the error should say that the "one argument" syntax is not supported for |
And TBH, this is also quite questionable behavior. |
That's caused by %len being mapped to lua's string.len() function, and lua does not complain about the extra arg:
|
From documentation, I would think this should work:
Please note the example works just fine without the collon:
Testing on Fedora Rawhide:
The text was updated successfully, but these errors were encountered: