Skip to content

Commit ba5e742

Browse files
committed
Replace method call to preserve backward compatibility
1 parent a853854 commit ba5e742

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/string/format/lib

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/string/format/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function format( str ) {
9494
token.padZeros = false;
9595
break;
9696
case '0':
97-
token.padZeros = !flags.includes( '-' ); // NOTE: We use built-in `Array.prototype.includes` here instead of `@stdlib/assert/contains` in order to avoid circular dependencies.
97+
token.padZeros = flags.indexOf( '-' ) < 0; // NOTE: We use built-in `Array.prototype.indexOf` here instead of `@stdlib/assert/contains` in order to avoid circular dependencies.
9898
break;
9999
case '#':
100100
token.alternate = true;

0 commit comments

Comments
 (0)