ags
This commit is contained in:
parent
eddf7cecb8
commit
aea798d119
16631 changed files with 1480363 additions and 257 deletions
10
home/ags/node_modules/eslint-plugin-n/lib/util/strip-import-path-params.js
generated
vendored
Normal file
10
home/ags/node_modules/eslint-plugin-n/lib/util/strip-import-path-params.js
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/**
|
||||
* @author Toru Nagashima
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = function stripImportPathParams(path) {
|
||||
const i = path.indexOf("!")
|
||||
return i === -1 ? path : path.slice(0, i)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue