8 lines
187 B
TypeScript
8 lines
187 B
TypeScript
/**
|
|
* # Path Traversal Check
|
|
* @returns {string}
|
|
*/
|
|
export default function pathTraversalCheck(text: string | number): string {
|
|
return text.toString().replace(/\//g, "");
|
|
}
|