-
Notifications
You must be signed in to change notification settings - Fork 18
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()
function missing in Lua even when Lua 2.5 manual documents it
#73
Comments
In case it helps anyone else, I wrote the following function as an alternative that is applicable for my specific use-case:
I am still interested in knowing what happened to |
Ah. lua-ml does not implement it. |
Was You can use https://soupault.app/reference-manual/#Regex.replace_all |
Thank you!
Not sure about that. But its documented in the Lua 2.5 reference manual linked to in the soupault reference manual. |
I want to convert the text of a tag element into a url path: Firefox add-on -> firefox-add-on.
Using the Lua 2.5 manual, I wrote this transformation:
collection_path = gsub(strlower(collection_text), " ", "-")
But, soupault gives an error:
of which the statement of import is:
Runtime error: string library does not implement gsub
But Lua 2.5 manual documents it.
Any clue on what's going on?
The text was updated successfully, but these errors were encountered: