On Jan 17, 2007, at 5:26 PM, Benjamin Krause wrote:

>      FERRET_SPECIAL_CHARS = [ /:/, /\(/, /\)/, /\[/, /\]/, /!/, /\
> +/, /"/, /~/, /\^/, /-/, /|/, />/, /</, /=/, /\*/, /\?/, /\./, /&/ ]

1. Should $ be in the list?

2. Here is the solution I came up with, (nothing mind shattering but  
I thought some folks on the list might appreciate seeing it):

query = (query.split('') - (FERRET_SPECIAL_CHARS - CONFIG 
[:allowed_ferret_syntax])).join()

CONFIG[:allowed_ferret_syntax] contains the characters we are  
allowing, right now only double quote.

Unless I am missing something, we are now successfully allowing no  
ferret syntax other than phrases. Whoo hoo!

John
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to