We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8830213 commit ce3dc0aCopy full SHA for ce3dc0a
lib/eid.js
@@ -155,7 +155,7 @@ var validateFormat = function(format, numSpecifiers) {
155
}
156
var formatted = new JFormatter(format).format(specifiers);
157
for (var specifier in specifiers) {
158
- if (!formatted.includes(specifier)) {
+ if (string.indexOf(specifier) === -1) {
159
throw new TypeError("Given format contains to little format specifiers, " +
160
"expected " + numSpecifiers + " but given \"" + format + "\"");
161
0 commit comments