signal-desktop/ts/components/_util.ts

6 lines
195 B
TypeScript
Raw Normal View History

2019-11-19 15:03:00 -08:00
// A separate file so this doesn't get picked up by StyleGuidist over real components
export function cleanId(id: string): string {
return id.replace(/[^\u0020-\u007e\u00a0-\u00ff]/g, '_');
}