mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 01:06:23 +02:00
refactor: move pure utility functions out of UI components (#1194)
This commit is contained in:
parent
e1e4bb4706
commit
d37417cbe9
10 changed files with 55 additions and 51 deletions
4
surfsense_web/lib/comments/utils.ts
Normal file
4
surfsense_web/lib/comments/utils.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
export function convertRenderedToDisplay(contentRendered: string): string {
|
||||
// Convert @{DisplayName} format to @DisplayName for editing
|
||||
return contentRendered.replace(/@\{([^}]+)\}/g, "@$1");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue