Memory optimization

This commit is contained in:
Jaiden Mispy 2014-10-16 03:02:39 -07:00
parent d09d968915
commit b7f67ec0a6
8 changed files with 203990 additions and 38 deletions

View file

@ -43,7 +43,7 @@ module Ebooks
end
### Utility functions
# We don't really want to deal with all this weird unicode punctuation
def self.normalize(text)
htmlentities.decode text.gsub('“', '"').gsub('”', '"').gsub('', "'").gsub('…', '...')