Move some modules from flavours/glitch/utils/ back to flavours/glitch/features/compose/util/

This commit is contained in:
Claire
2022-10-11 11:51:15 +02:00
parent 7097a459be
commit 0f4a4d7527
3 changed files with 1 additions and 1 deletions

View File

@ -0,0 +1,9 @@
import { urlRegex } from './url_regex';
const urlPlaceholder = '$2xxxxxxxxxxxxxxxxxxxxxxx';
export function countableText(inputText) {
return inputText
.replace(urlRegex, urlPlaceholder)
.replace(/(^|[^\/\w])@(([a-z0-9_]+)@[a-z0-9\.\-]+[a-z0-9]+)/ig, '$1@$3');
};