1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Can upload new custom emojies

This commit is contained in:
2020-04-29 13:42:01 +02:00
parent e6df696077
commit 225df61aa0
5 changed files with 162 additions and 1 deletions

View File

@ -31,3 +31,7 @@ bool validateUrl(String url) {
/// Validate directory reference
bool validateDirectoryReference(String ref) =>
RegExp(r'@[a-zA-Z0-9]+').hasMatch(ref);
/// Validated a shortcut
bool validateShortcut(String shortcut) =>
RegExp(r'^:[a-zA-Z0-9]+:$').hasMatch(shortcut);