This commit is contained in:
r888888888
2014-05-23 14:15:43 -04:00
committed by Toks
parent 5f29ef5557
commit 1690365bdc
+1 -1
View File
@@ -10,7 +10,7 @@ module Danbooru
end
def to_escaped_for_tsquery
"'#{gsub(/'/, '\0\0').gsub(/\\/, '\0\0\0\0')}'"
"'#{gsub(/\0/, '').gsub(/'/, '\0\0').gsub(/\\/, '\0\0\0\0')}'"
end
def to_escaped_js