Skip to content

Commit 1a81ff0

Browse files
committed
build: slightly tweak regular expression to not match for require in JSDoc description sentence
1 parent fa9a67d commit 1a81ff0

File tree

2 files changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/_tools/eslint/rules

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-main-export/lib/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function main( context ) {
108108
match = RE_REQUIRE.exec( tag.description );
109109
if ( match ) {
110110
// The main export should be required last, so no `require` calls should follow:
111-
if ( match.index !== tag.description.lastIndexOf( 'require' ) ) {
111+
if ( match.index !== tag.description.lastIndexOf( 'require(' ) ) {
112112
report( 'Example code of main export should require itself last, i.e. contain `require( \'@'+modulePath+'\' )` as the last `require` call', loc );
113113
}
114114
} else {

lib/node_modules/@stdlib/_tools/eslint/rules/require-spaces/lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'use strict';
2020

2121
/**
22-
* ESLint rule enforcing spaces in `require()` statements.
22+
* ESLint rule enforcing spaces in `require` statements.
2323
*
2424
* @module @stdlib/_tools/eslint/rules/require-spaces
2525
*

0 commit comments

Comments
 (0)