Skip to content

Commit ce3dc0a

Browse files
committed
Compatibility with older JS versions
1 parent 8830213 commit ce3dc0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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 (!formatted.includes(specifier)) {
158+
if (string.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)