Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit 6ce09b9

Browse files
committed
Ben's comments
1 parent fa250dd commit 6ce09b9

File tree

2 files changed

+335
-294
lines changed

2 files changed

+335
-294
lines changed

lib/src/collect.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,10 +507,15 @@ class StdoutLog extends Log {
507507
extension _ScopedOutput on Set<String> {
508508
bool includesScript(String? scriptUriString) {
509509
if (scriptUriString == null) return false;
510+
511+
// If the set is empty, it means the user didn't specify a --scope-output
512+
// flag, so allow everything.
510513
if (isEmpty) return true;
514+
511515
final scriptUri = Uri.parse(scriptUriString);
512516
if (scriptUri.scheme != 'package') return false;
513-
final scope = scriptUri.path.split('/').first;
517+
518+
final scope = scriptUri.pathSegments.first;
514519
return contains(scope);
515520
}
516521
}

0 commit comments

Comments
 (0)