fix for issue #1188

This commit is contained in:
Kevin Logan
2016-09-01 10:59:19 -05:00
parent c7cc3b4a29
commit c0a9d20a02
+8 -4
View File
@@ -223,10 +223,14 @@ getJasmineRequireObj().matchersUtil = function(j$) {
} }
var extraKeys = []; var extraKeys = [];
for (var i in allKeys) { if (allKeys.length === 0) {
if (!allKeys[i].match(/^[0-9]+$/)) { return allKeys;
extraKeys.push(allKeys[i]); }
}
for (var x = 0; x < allKeys.length; x++) {
if (!allKeys[x].match(/^[0-9]+$/)) {
extraKeys.push(allKeys[x]);
}
} }
return extraKeys; return extraKeys;