Skip to content

Commit 4d6f9a0

Browse files
committed
Auto-generated commit
1 parent 6266768 commit 4d6f9a0

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

.github/.keepalive

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-09-01T01:04:55.160Z
1+
2022-10-01T01:29:40.885Z

benchmark/benchmark.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bench( pkg, function benchmark( b ) {
3939
b.tic();
4040
for ( i = 0; i < b.iterations; i++ ) {
4141
out = substringAfter( str, fromCodePoint( i%126 ) );
42-
if ( !isString( out ) ) {
42+
if ( typeof out !== 'string' ) {
4343
b.fail( 'should return a string' );
4444
}
4545
}

docs/repl.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
{{alias}}( str, search[, fromIndex] )
23
Returns the part of a string after a specified substring.
34

docs/types/test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import substringAfter = require( './index' );
2929
substringAfter( 'beep boop', 'b', 5 ); // $ExpectType string
3030
}
3131

32-
// The function does not compile if provided arguments having invalid types...
32+
// The compiler throws an error if the function is provided arguments having invalid types...
3333
{
3434
substringAfter( true, 'd', 0 ); // $ExpectError
3535
substringAfter( false, 'd', 0 ); // $ExpectError
@@ -53,7 +53,7 @@ import substringAfter = require( './index' );
5353
substringAfter( 'abc', 'd', ( x: number ): number => x ); // $ExpectError
5454
}
5555

56-
// The function does not compile if provided an unsupported number of arguments...
56+
// The compiler throws an error if the function is provided an unsupported number of arguments...
5757
{
5858
substringAfter(); // $ExpectError
5959
substringAfter( 'abc' ); // $ExpectError

lib/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636

3737
// MODULES //
3838

39-
var substringAfter = require( './main.js' );
39+
var main = require( './main.js' );
4040

4141

4242
// EXPORTS //
4343

44-
module.exports = substringAfter;
44+
module.exports = main;

0 commit comments

Comments
 (0)