MCPcopy Create free account
hub / github.com/webdriverio/webdriverio / getMajorVersionFromString

Function getMajorVersionFromString

packages/wdio-utils/src/node/utils.ts:286–292  ·  view source on GitHub ↗
(fullVersion:string)

Source from the content-addressed store, hash-verified

284}
285
286export function getMajorVersionFromString(fullVersion:string) {
287 let prefix
288 if (fullVersion) {
289 prefix = fullVersion.match(/^[+-]?([0-9]+)/)
290 }
291 return prefix && prefix.length > 0 ? prefix[0] : ''
292}
293
294export async function setupChromedriver (cacheDir: string, driverVersion?: string) {
295 const platform = detectBrowserPlatform()

Callers 1

setupChromedriverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…