Skip to content

Commit

Permalink
typo correction
Browse files Browse the repository at this point in the history
  • Loading branch information
tech-dm-klymenko committed Dec 2, 2023
1 parent 7656e08 commit 7de2980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/wdio-config/src/node/ConfigParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ export default class ConfigParser {
}

cliSpecArgContainsPathstoSpecs(specArr: string[]) {
// check that CLI --spec arg from does not contain path to file
// check that CLI --spec arg does not contain path to file
// If arg contains '/', '\' or '.' => in this case it is filepath
return /[/\\.]/.test(specArr[0])
}
Expand All @@ -525,7 +525,7 @@ export default class ConfigParser {
}

removeGlobPatternFromSpecCliArg(specCliArgWithGlobPattern: string) {
// remove glob-pattenr symbols: *, **, ?, [, ]
// remove glob-pattern symbols: *, **, ?, [, ]
return specCliArgWithGlobPattern.replace(/[*?[\]]/g, '')
}
}

0 comments on commit 7de2980

Please sign in to comment.