1
0
Fork 0
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:
Fedor Katurov 2019-12-03 16:53:24 +07:00
parent 872e91b39b
commit 0d64d847a1
2 changed files with 11 additions and 12 deletions

View file

@ -89,7 +89,7 @@ export const formatText = (text: string): string =>
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(
/~([\wа-яА-Я\-]+)/giu,
/~([\wа-яА-Я-]+)/giu,
'<span class="username" onClick="window.postMessage({ type: \'username\', username: \'$1\'});">~$1</span>'
)
.replace(/:\/\//gim, ':|--|')