We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to sanitize the input value, I made this work:
js const regex = /[^a-zA-Z0-9-]/g return {regex} end on input set my value to my value.replace(regex, '') end
I was wondering how can I avoid having to define the regex in JS and put it directly in HS, I didn't find any reference on RegExp on the documentation
The text was updated successfully, but these errors were encountered:
If I just use
on input set my value to my value.replace(/[^a-zA-Z0-9-]/g, '') end
I get this error:
Unexpected value: / set my value to my value.replace(/[^a-zA-Z0-9-]/g, '') ^^
Sorry, something went wrong.
No branches or pull requests
I want to sanitize the input value, I made this work:
I was wondering how can I avoid having to define the regex in JS and put it directly in HS, I didn't find any reference on RegExp on the documentation
The text was updated successfully, but these errors were encountered: