mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
9 lines
245 B
TypeScript
9 lines
245 B
TypeScript
/**
|
|
* Returns a string with all spaces replaced to '-'.
|
|
* A datatestid cannot have spaces on desktop, so we use this to format them across the app.
|
|
*
|
|
*/
|
|
export function strToDataTestId(input: string) {
|
|
return input.replaceAll(' ', '-');
|
|
}
|