diff options
| author | Fuwn <[email protected]> | 2023-12-22 03:19:16 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-22 03:19:16 -0800 |
| commit | 55cac6e5413554afe1ca97562a610f9ae0d464c5 (patch) | |
| tree | 5a997d1f78fdca5eb8f6e69e5008704f7633b0cd /src/lib/Tools/tool.ts | |
| parent | feat(wrapped): more full-year hint (diff) | |
| download | due.moe-55cac6e5413554afe1ca97562a610f9ae0d464c5.tar.xz due.moe-55cac6e5413554afe1ca97562a610f9ae0d464c5.zip | |
refactor(tools): move nbsp()
Diffstat (limited to 'src/lib/Tools/tool.ts')
| -rw-r--r-- | src/lib/Tools/tool.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Tools/tool.ts b/src/lib/Tools/tool.ts index cf24eb8c..c116151d 100644 --- a/src/lib/Tools/tool.ts +++ b/src/lib/Tools/tool.ts @@ -30,3 +30,5 @@ export const parseOrDefault = <T = string | number>( : ((browser && urlParameters?.size !== 0 ? urlParameters?.get(parameter) || fallback : fallback) as T); + +export const nbsp = (str: string) => str.replace(/ /g, ' '); |