Files
NapCatQQ/.pnpm-store/v3/files/32/61bb619eccbca39d32fd4027e3e4be1c966e9cddffd1934d20928cbf3d3754c5b4ada9add675e369b59514fc17a8f32586430023ea7fc88af5a6c867f56d55
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

21 lines
390 B
Plaintext

/**
* @author Toru Nagashima
* See LICENSE file in root directory for full license.
*/
"use strict"
/**
* @param {unknown} path
* @returns {string}
*/
module.exports = function stripImportPathParams(path) {
const pathString = String(path)
const index = pathString.indexOf("!")
if (index === -1) {
return pathString
}
return pathString.slice(0, index)
}