mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
boris and flow for everyone
This commit is contained in:
parent
872e91b39b
commit
0d64d847a1
2 changed files with 11 additions and 12 deletions
|
@ -89,7 +89,7 @@ export const formatText = (text: string): string =>
|
|||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(
|
||||
/~([\wа-яА-Я\-]+)/giu,
|
||||
/~([\wа-яА-Я-]+)/giu,
|
||||
'<span class="username" onClick="window.postMessage({ type: \'username\', username: \'$1\'});">~$1</span>'
|
||||
)
|
||||
.replace(/:\/\//gim, ':|--|')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue