feat(Tag): Remove the character check from the tag
This commit is contained in:
@@ -95,13 +95,13 @@ const useTagModal = (props: IProps = {}) => {
|
||||
isInvalid: true,
|
||||
errorMsg: t('form.fields.slug_name.msg.range'),
|
||||
};
|
||||
} else if (/[^a-z0-9+#\-.]/.test(slugName.value)) {
|
||||
bol = false;
|
||||
formData.slugName = {
|
||||
value: slugName.value,
|
||||
isInvalid: true,
|
||||
errorMsg: t('form.fields.slug_name.msg.character'),
|
||||
};
|
||||
// } else if (/[^a-z0-9+#\-.]/.test(slugName.value)) {
|
||||
// bol = false;
|
||||
// formData.slugName = {
|
||||
// value: slugName.value,
|
||||
// isInvalid: true,
|
||||
// errorMsg: t('form.fields.slug_name.msg.character'),
|
||||
// };
|
||||
} else {
|
||||
formData.slugName = {
|
||||
value: slugName.value,
|
||||
@@ -217,7 +217,9 @@ const useTagModal = (props: IProps = {}) => {
|
||||
isInvalid={formData.slugName.isInvalid}
|
||||
/>
|
||||
|
||||
<Form.Text as="div">{t('form.fields.slug_name.desc')}</Form.Text>
|
||||
<Form.Text as="div">
|
||||
{t('form.fields.slug_name.msg.range')}
|
||||
</Form.Text>
|
||||
<Form.Control.Feedback type="invalid">
|
||||
{formData.slugName.errorMsg}
|
||||
</Form.Control.Feedback>
|
||||
|
||||
Reference in New Issue
Block a user