auto-npm-install
auto-npm-install copied to clipboard
regex doesn't work for any of the imports I've tried
this regex:
https://github.com/moshfeu/auto-npm-install/blob/eaf72d29b6e8dfb609bae79af4a5a97b20e121d7/src/import-checker-code-action.ts#L26
always just gives me null
What is the import
statement you try?
you know semicolons are optional in JS :wink: ?
Works for me:


I'm agree about the semicolons 👍
BTW import statements can be written on multiple lines too:
import {
a,
b
} from 'c';
the current regex solution will fail with that too