diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2020-04-14 11:10:59 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2020-05-09 20:40:02 -0400 |
commit | 88ed8a0c1376fbe6d45059694ce31db597fde3e9 (patch) | |
tree | 4fb95449893c488b2954bf432db4997829f54284 /lib/sisu/db_sqltxt.rb | |
parent | emacs sisu-mode.el, syntax highlighting match https (diff) |
ruby 2.7 fix
Diffstat (limited to 'lib/sisu/db_sqltxt.rb')
-rw-r--r-- | lib/sisu/db_sqltxt.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sisu/db_sqltxt.rb b/lib/sisu/db_sqltxt.rb index 9f311242..c6c2e301 100644 --- a/lib/sisu/db_sqltxt.rb +++ b/lib/sisu/db_sqltxt.rb @@ -55,7 +55,7 @@ module SiSU_DbText class Prepare def special_character_escape(str) - str=str.gsub(/'/m,"''"). #string.gsub!(/'/,"\047") #string.gsub!(/'/,"\\'") + str=str.to_s.gsub(/'/m,"''"). #string.gsub!(/'/,"\047") #string.gsub!(/'/,"\\'") gsub(/(\\)/m,'\1\1'). #ok but with warnings, double backslash on sqlite #str.gsub!(/[\\]/m,'\\x5C') #ok but with warnings, but not for sqlite #str.gsub!(/(\\)/m,'\1') #ok for sqlite not for pgsql gsub(/#{Mx[:br_line]}|#{Mx[:br_nl]}/m,"<br>\n"). gsub(/#{Mx[:tag_o]}\S+?#{Mx[:tag_c]}/m,''). #check |