1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 08:25:16 +00:00

Can update comment content

This commit is contained in:
2020-07-10 08:57:46 +02:00
parent 24e094fc4a
commit 5a5bf8c5c3
5 changed files with 41 additions and 6 deletions

View File

@ -49,7 +49,7 @@ pub fn check_url(url: &str) -> bool {
/// assert_eq!(check_string_before_insert("Hello world"), true);
/// ```
pub fn check_string_before_insert(s: &str) -> bool {
s.trim().len() > 3
s.trim().len() > 2
}
/// Check the validity of a YouTube ID