mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
@@ -1 +1,6 @@
|
||||
/**
|
||||
* Helps sanitize a module name if it is prefixed with '~/', '~' or '/'
|
||||
* @param moduleName the name
|
||||
* @param removeExtension whether to remove extension
|
||||
*/
|
||||
export function sanitizeModuleName(moduleName: string, removeExtension?: boolean): string;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
/**
|
||||
* Helps sanitize a module name if it is prefixed with '~/', '~' or '/'
|
||||
* @param moduleName the name
|
||||
* @param removeExtension whether to remove extension
|
||||
*/
|
||||
export function sanitizeModuleName(moduleName: string, removeExtension: boolean = true): string {
|
||||
moduleName = moduleName.trim();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user