We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
def escape(s)
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
The current implementation doesn't really escape anything if the string param contains a single quote, it makes a copy and replace it.
─○ irb 1.9.3-p448 :001 > msg="'8.00.0'" => "'8.00.0'" 1.9.3-p448 :002 > msg.to_s.gsub('\'', '\'\\\'\'') => "'8.00.0''8.00.0''" 1.9.3-p448 :003 >
The text was updated successfully, but these errors were encountered:
fixed at d9556b4
Sorry, something went wrong.
Improving how we escape single quotes refs #129 #5 #112 #95 #39
5ff106a
No branches or pull requests
The current implementation doesn't really escape anything if the string param contains a single quote, it makes a copy and replace it.
The text was updated successfully, but these errors were encountered: