-
-
Notifications
You must be signed in to change notification settings - Fork 335
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Please read the FAQ for the bug you encountered.
- I have read the existing FAQ
⏯ Playground Link
💻 Code
No response
🙁 Actual behavior
| Source | Pattern | Match |
|---|---|---|
import { Foo, Bar } from 'bar' |
import { Foo } from 'bar' |
YES |
import { Foo, Bar, Baz } from 'bar' |
import { Foo } from 'bar' |
NO |
import { Bar, Foo } from 'bar' |
import { Foo } from 'bar' |
NO |
🙂 Expected behavior
I would expect either a match in all 3 cases or no match in all 3 cases.
Additional information about the issue
Basically I'm trying to figure out how to use ast-grep to match import statements and can't get this to work. This is happening in relaxed mode.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working