@bbc/nightwatch-commands
Advanced tools
Comparing version
@@ -10,6 +10,10 @@ exports.command = function (selectors) { | ||
selectors.forEach (function (selector) { | ||
var regex = new RegExp(selector + '\/[0-9]*.[0-9]*.[0-9]*-?[0-9]*', 'gmi'); | ||
console.log(result.value.match(regex)[0]); | ||
try{ | ||
var regex = new RegExp(selector + '\/[0-9]*.[0-9]*.[0-9]*-?[0-9]*', 'gmi'); | ||
console.log(result.value.match(regex)[0]); | ||
} catch (e) { | ||
console.log(e); | ||
} | ||
}); | ||
}); | ||
}; |
{ | ||
"name": "@bbc/nightwatch-commands", | ||
"version": "1.0.0", | ||
"version": "1.0.2", | ||
"description": "Basic Nightwatch Commands", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
5385
1.28%64
6.67%