user-jackychan / trimpath

Automatically exported from code.google.com/p/trimpath
0 stars 0 forks source link

I would like to submit a little bugfix #39

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I realise that if where expression doesn´t contains spaces between =, regex 
never replaces to "=="

Example

SELECT A.* FROM A WHERE A.B=3

Simple resolution is to change line 547 
            js = js.replace(/ = /g, " == ");

to

            js = js.replace(/([\s\w])(=)([\s\w])/g, '$1 == $3');

Thanks!!

Original issue reported on code.google.com by cguar...@gmail.com on 4 Dec 2014 at 3:24