datacamp / sqlwhat

https://sqlwhat.readthedocs.io
GNU Affero General Public License v3.0
3 stars 8 forks source link

regex matching seemingly not working #100

Closed colinricardo closed 7 years ago

colinricardo commented 7 years ago

Am I doing something wrong?

See screenshot below:

screen shot 2017-05-26 at 4 24 43 am

Test is on line 1071, and works fine when fixed=True but I want to check for and|AND.

Another example is here:

screen shot 2017-05-26 at 5 12 10 am
machow commented 7 years ago

@colinricardo ah, it's a bug. sqlwhat was trying to match regex expressions to beginning of string. I'll push the fix today.

filipsch commented 7 years ago

Fixed and live.