Skip to content

Commit a30ffeb

Browse files
authored
Ignore no requests if ignoreSuffix is empty
An empty ignore suffix currently causes all requests to be ignored. This makes it impossible to disable ignoring by suffix.
1 parent 7232663 commit a30ffeb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/config/AgentConfig.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ export function finalizeConfig(config: AgentConfig): void {
5353
'i',
5454
);
5555

56-
const ignoreSuffix = `^.+(?:${config
56+
const neverMatchingRegexp = '\\A(?!x)x';
57+
const ignoreSuffix = !config.ignoreSuffix ? neverMatchingRegexp : `^.+(?:${config
5758
.ignoreSuffix!.split(',')
5859
.map((s) => escapeRegExp(s.trim()))
5960
.join('|')})$`;

0 commit comments

Comments
 (0)