1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/eslint-plugin-node/lib/util/strip-import-path-params.js

11 lines
240 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
/**
* @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)
}