fix pool metatags, fix artist search

This commit is contained in:
albert
2013-02-26 23:35:17 -08:00
parent ef7ae0c5bf
commit cca0cc8dbd
4 changed files with 8 additions and 8 deletions

View File

@@ -2,7 +2,7 @@ module Danbooru
module Extensions
module String
def to_escaped_for_sql_like
return self.gsub(/\\/, '\0\0').gsub(/(%|_)/, '\\\\\\1').gsub(/_/, '\\_').gsub(/\*/, '%')
return self.gsub(/\\/, '\0\0').gsub(/(%|_)/, "\\\\\\1").gsub(/\*/, '%')
end
def to_escaped_js