Allow _ in package name

Fix #1311
This commit is contained in:
bootstraponline
2013-10-14 22:05:45 -04:00
parent 63bd9f7556
commit 6564fa5d83

View File

@@ -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] === "\\") ) {