Fix check for parts
MODIFY
packages/@romejs/js-ast-utils/doesNodeMatchPattern.ts
packages/@romejs/js-ast-utils/doesNodeMatchPattern.ts
@@ -53,7 +53,7 @@ export default function doesNodeMatchPattern(
const {parts: expectedParts, hasDoubleStar} = split(match);
// Fast path for single part pattern matching
- if (expectedParts.length && expectedParts[0] !== '*' && !hasDoubleStar) {
+ if (expectedParts.length === 1 && expectedParts[0] !== '*' && !hasDoubleStar) {
return isIdentifierish(node) && node.name === expectedParts[0];
}

Fix check for parts