Skip to content

Commit ca54026

Browse files
committed
fix(regex): [aggregate] ignore list export statement matches
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent 3ea3f4b commit ca54026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/export-aggregate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@
7171
* @const {RegExp} EXPORT_AGGREGATE_REGEX
7272
*/
7373
const EXPORT_AGGREGATE_REGEX: RegExp =
74-
/(?<=^|[\n;](?:[\t ]*(?:\w+ )?)?)export(?:(?:\s+(?<type>type)\s*)|\s*)(?<exports>(?:\*(?:\s+as\s+\S+)?)|\S+|(?:{[\w\t\n\r "$'*,./{}-]+?}))\s*from\s*["']\s*(?<specifier>(?:(?<='\s*)[^']*[^\s'](?=\s*'))|(?:(?<="\s*)[^"]*[^\s"](?=\s*")))\s*["']/g
74+
/(?<=^[\t ]*|[\n;](?:[\t ]*(?:\w+ )?)?)export(?:(?: *(?<type>type) *)|[\t\n ]*)(?<exports>(?:\*(?: +as +\S+)?)|\S+|(?:{[\w\t\n\r "$'*,./-]+?}))[\t ]*from[\t ]*["']\s*(?<specifier>(?:(?<=' *)[^']*[^\s'](?= *'))|(?:(?<=" *)[^"]*[^\s"](?= *"))) *["']/g
7575

7676
export default EXPORT_AGGREGATE_REGEX

0 commit comments

Comments
 (0)