lib/picky/query/token.rb in picky-0.0.3 vs lib/picky/query/token.rb in picky-0.0.4

- old
+ new

@@ -67,20 +67,20 @@ end # If the text ends with *, partialize it. If with ", don't. # @@no_partial = /\"$/ - @@partial = /[\*]$/ + @@partial = /\*$/ def partialize self.partial = false and return if @text =~ @@no_partial self.partial = true if @text =~ @@partial end # If the text ends with ~ similarize it. If with ", don't. # @@no_similar = /\"$/ - @@similar = /[~]$/ + @@similar = /\~$/ def similarize self.similar = false and return if @text =~ @@no_similar self.similar = true if @text =~ @@similar end @@ -92,13 +92,10 @@ # @@illegals = /["*~]/ def remove_illegals @text.gsub! @@illegals, '' unless @text.blank? end - - # TODO Think about these, remove illegals and normalize... - # - + # Visitor for tokenizer. # # TODO Rewrite!!! # def tokenize_with tokenizer \ No newline at end of file