Skip to content

Commit 683f370

Browse files
committed
fix: provide fromIndex to base implementation
1 parent 29d7b0d commit 683f370

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/string/replace-before/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function replaceBefore( str, search, replacement ) {
6464
if ( !isString( replacement ) ) {
6565
throw new TypeError( format( 'invalid argument. Third argument must be a string. Value: `%s`.', replacement ) );
6666
}
67-
return base( str, search, replacement );
67+
return base( str, search, replacement, 0 );
6868
}
6969

7070

0 commit comments

Comments
 (0)