mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-02 21:45:14 +01:00
feat(utils): addDashesToSpaces utils
This commit is contained in:
committed by
Carlos García Ortiz
parent
ffcfde3bb5
commit
116c3a9274
3
packages/utils/src/addDashesToSpaces.ts
Normal file
3
packages/utils/src/addDashesToSpaces.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const addDashesToSpaces = (inputString: string): string =>
|
||||
// Use a regular expression to replace spaces with dashes
|
||||
inputString.replace(/\s+/g, '-');
|
||||
@@ -34,3 +34,4 @@ export * from './urlToOnion';
|
||||
export * as versionUtils from './versionUtils';
|
||||
export * as xssFilters from './xssFilters';
|
||||
export * from './getLocaleSeparators';
|
||||
export * from './addDashesToSpaces';
|
||||
|
||||
Reference in New Issue
Block a user