Skip to content

Commit f59b1bd

Browse files
committed
Fix for older version od JS, travis multi conf build
1 parent ce3dc0a commit f59b1bd

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
---
22
language: node_js
3+
sudo: false
4+
node_js:
5+
- "4.1"
6+
- "4.0"
7+
- "0.12"
8+
- "0.11"
9+
- "0.10"
10+
- "0.8"
11+
- "0.6"
12+
- "iojs"

lib/eid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ var validateFormat = function(format, numSpecifiers) {
155155
}
156156
var formatted = new JFormatter(format).format(specifiers);
157157
for (var specifier in specifiers) {
158-
if (string.indexOf(specifier) === -1) {
158+
if (formatted.indexOf(specifier) === -1) {
159159
throw new TypeError("Given format contains to little format specifiers, " +
160160
"expected " + numSpecifiers + " but given \"" + format + "\"");
161161
}

0 commit comments

Comments
 (0)