mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-31 12:12:08 +08:00

* refactor: spaces in legend formatting * refactor: spaces in legend formatting * chore: string to const string * refactor: replace string by const
3 lines
116 B
TypeScript
3 lines
116 B
TypeScript
export const getFormatedLegend = (value: string): string =>
|
|
value.replace(/\{\s*\{\s*(.*?)\s*\}\s*\}/g, '{{$1}}');
|