We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e15dd commit 0b6c336Copy full SHA for 0b6c336
lib/index.ts
@@ -8,8 +8,10 @@ const domLibraryAsString = readFileSync(
8
'utf8',
9
).replace(/process.env/g, '{}')
10
11
-function mapArgument(argument: any): any {
12
- return typeof argument === 'object' && argument.regex ? new RegExp(argument.regex) : argument
+function mapArgument(argument: any, index: number): any {
+ return index === 0 && typeof argument === 'object' && argument.regex
13
+ ? new RegExp(argument.regex)
14
+ : argument
15
}
16
17
const mockFnToExecuteInPage = `
0 commit comments