Allow displaying field status (error, warning, info) under form fields (#38175)
This commit is contained in:
1 parent
fdbc3c8a16
commit
890b2673fc
31 files changed
+331
-52
No files matched your search
@@ -59,3 +59,8 @@ export const inputToHashtag = (input: string): string => {
|
||||
|
||||
return `#${words.join('')}${trailingSpace}`;
|
||||
};
|
||||
|
||||
export const hasSpecialCharacters = (input: string) => {
|
||||
// Regex matches any character NOT a letter/digit, except the #
|
||||
return /[^a-zA-Z0-9# ]/.test(input);
|
||||
};
|
||||
Reference in new issue
Block a user