mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-26 14:54:19 +03:00
trimming text before extracting tags
This commit is contained in:
parent
aab859307c
commit
f8188fde22
@ -37,7 +37,7 @@ const TagInput = ({
|
||||
const _handleOnChange = (_text) => {
|
||||
setText(_text.replace(/,/g, ' ').replace(/#/g, ''));
|
||||
|
||||
let cats = _text.split(' ');
|
||||
let cats = _text.trim().split(' ');
|
||||
if (handleTagChanged && cats.length > 0) {
|
||||
cats.length > 10
|
||||
? setWarning(intl.formatMessage({ id: 'editor.limited_tags' }))
|
||||
|
Loading…
Reference in New Issue
Block a user