chore(path-tool): 修改函数名,更加语义化

This commit is contained in:
zhaoyingbo 2024-09-26 03:30:06 +00:00
parent 1bee190441
commit cf429f0d3f

@ -21,7 +21,7 @@ export class PathCheckTool {
* @param {string} path -
* @returns {boolean} true false
*/
exactCheck(path: string): boolean {
exact(path: string): boolean {
return this.pathname === this.makePath(path)
}
@ -30,7 +30,7 @@ export class PathCheckTool {
* @param {string} path -
* @returns {boolean} URL true false
*/
startsWithCheck(path: string): boolean {
startsWith(path: string): boolean {
return this.pathname.startsWith(this.makePath(path))
}
@ -39,18 +39,10 @@ export class PathCheckTool {
* @param {string} path -
* @returns {boolean} URL true false
*/
fullCheck(path: string): boolean {
full(path: string): boolean {
return this.pathname === path
}
/**
*
* @param {string} newPrefix -
*/
changePrefix(newPrefix: string): void {
this.prefix = newPrefix
}
/**
* URL
* @param {string} [childPrefix] -