logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: fa5858c4ac3f2bf0e9b8c74c62a54fec8935b0b5
parent: 250c885de655ed0b45b76cc35c5782e019b5a0ec
Author: Morgan Bazalgette <the@howl.moe>
Date:   Mon, 16 Apr 2018 22:21:27 +0200

Make countableText be all text

Closes #11

Diffstat:

Mapp/javascript/mastodon/features/compose/util/counter.js4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/app/javascript/mastodon/features/compose/util/counter.js b/app/javascript/mastodon/features/compose/util/counter.js @@ -3,7 +3,5 @@ import { urlRegex } from './url_regex'; const urlPlaceholder = 'xxxxxxxxxxxxxxxxxxxxxxx'; export function countableText(inputText) { - return inputText - .replace(urlRegex, urlPlaceholder) - .replace(/(^|[^\/\w])@(([a-z0-9_]+)@[a-z0-9\.\-]+[a-z0-9]+)/ig, '$1@$3'); + return inputText; };