Skip to content

Commit e9b4da6

Browse files
committed
Import regex should check for multiple whitespaces and semi-colon at end
1 parent 010d436 commit e9b4da6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ci/forbidden-identifiers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const componentFolders = fs
4343
const scopePackages = ['src/core'].concat(componentFolders);
4444

4545
const blockedRegex = new RegExp(blocked_statements.join('|'), 'g');
46-
const importRegex = /from '(.*)'/g;
46+
const importRegex = /from\s+'(.*)';/g;
4747

4848
/**
4949
* Find the fork point between HEAD of the current branch, and master.

0 commit comments

Comments
 (0)