gkz / grasp

JavaScript structural search, replace, and refactor
http://graspjs.com
MIT License
1.28k stars 33 forks source link

Can't search for identifiers with numbers #23

Closed ctusch closed 10 years ago

ctusch commented 10 years ago

I have this file: var t1 = "";

When I search for t1 (grasp "#t1" file.js) it doesn't return any results.

When I change t1 to t in the file and then search for t, I receive the correct result.

I'm on Windows 7 with node v0.10.26 and grasp v0.2.1.

gkz commented 10 years ago

Thanks for the report.

Fixed with https://github.com/gkz/grasp-squery/commit/9ae31129b1a4102f0a7ff313d89149e103cf268c