Skip to content

Commit 8534d4e

Browse files
committed
rewrite tests to cover more cases and be more dry
1 parent d6e3f3a commit 8534d4e

File tree

2 files changed

+1387
-641
lines changed

2 files changed

+1387
-641
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function compile (str) {
143143
}
144144

145145
for (var j = 0; j < value.length; j++) {
146-
if (!key.regexp.test(value)) {
146+
if (!key.regexp.test(value[j])) {
147147
throw new TypeError('Expected all "' + key.name + '" to match "' + key.pattern + '"')
148148
}
149149

0 commit comments

Comments
 (0)