This commit is contained in:
albert
2013-03-08 13:44:34 -05:00
parent 41f7e2a804
commit 8f65b567a2
2 changed files with 29 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ module Danbooru
end
def to_escaped_for_tsquery
"'#{gsub(/\\|'/, '\0\0\0\0')}'"
"'#{gsub(/'/, '\0\0').gsub(/\\/, '\0\0\0\0')}'"
end
def to_escaped_js