[TxMt] GTDAlt bug

Allan Odgaard throw-away-1 at macromates.com
Fri Jul 28 23:29:42 UTC 2006


On 29/7/2006, at 0:24, Charilaos Skiadas wrote:

> Should have included the code for the escaping. Here it is:
>
> def e_sh(str)
> 	str.to_s.gsub(/[^a-zA-Z0-9_.\/]/, "\\\\\\0")
> end

I reckon this is from Support/lib/escape.rb?

Try this version instead:

     def e_sh(str)
       str.to_s.gsub(/(?=[^a-zA-Z0-9_.\/\-\x7F-\xFF])/, '\\')
     end




More information about the textmate mailing list