Skip to content

Commit b35e9d3

Browse files
cnishinaCaptainGlac1er
authored andcommitted
chore(deps): npm audit fixes for vulnerabilities (#412)
Fix formatVersion Before 77.0.3865 -> 77.0.386 After 77.0.3865 -> 77.0.3865
1 parent a6792d5 commit b35e9d3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/provider/chromedriver.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export function matchBinaries(ostype: string): RegExp|null {
260260
* @param version The actual version.
261261
*/
262262
export function formatVersion(version: string): string|null {
263-
const newRegex = /([0-9]*\.[0-9]*\.[0-9]*).[0-9]*/g;
263+
const newRegex = /([0-9]*\.[0-9]*\.[0-9]*)(\.[0-9]*)?/g;
264264
try {
265265
const exec = newRegex.exec(version);
266266
if (exec) {
@@ -279,4 +279,4 @@ export function formatVersion(version: string): string|null {
279279
// no-op: if exec[1] is not reachable, move on to return null.
280280
}
281281
return null;
282-
}
282+
}

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)