method
_regex_quote
v1_8_7_72 -
Show latest stable
- Class:
String
_regex_quote(str)private
No documentation available.
# File lib/jcode.rb, line 11
def _regex_quote(str)
str.gsub(/(\\[\[\]\-\\])|\\(.)|([\[\]\\])/) do
$1 || $2 || '\\' + $3
end
end