mirror of
https://github.com/appium/appium.git
synced 2026-02-14 05:50:00 -06:00
@@ -254,7 +254,7 @@ Appium.prototype.configure = function(desiredCaps, cb) {
|
||||
|
||||
Appium.prototype.configureApp = function(desiredCaps, hasAppInCaps, cb) {
|
||||
var appPath = (hasAppInCaps ? desiredCaps.app : this.args.app)
|
||||
, isPackageOrBundle = /^([a-zA-Z0-9\-]+\.[a-zA-Z0-9\-]+)+$/.test(appPath)
|
||||
, isPackageOrBundle = /^([a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+)+$/.test(appPath)
|
||||
, origin = (hasAppInCaps ? "desiredCaps" : "command line");
|
||||
|
||||
if (appPath[0] === "/" || (isWindows && appPath!== null && appPath.length > 2 && appPath[1] === ":" && appPath[2] === "\\") ) {
|
||||
|
||||
Reference in New Issue
Block a user