Re:Show HN: Auto install npm dependencies as you code
by concise_unicorn on Monday August 08, 2016 @02:50PM
(#12250000)
It literally takes about 50ms to parse libraries like jQuery (mobile), angular and React with acorn[1].
Wether the choice was deliberate or not is debatable, but given the speed of these parsers I'd reason that there isn't any advantage to using regexes.
Reducing the amount of false positives is also one step closer to making this tool somewhat more secure, though certainly doesn't address any of the previous comments in this thread.
So i wouldn't call regex a 'very naive' choice, since people making it are aware of tradeoffs and pick regex intentionally.