mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-21 17:15:17 +00:00
Can create text posts
This commit is contained in:
@ -45,4 +45,16 @@ export function fixEncoding(input : string) : string {
|
||||
export function removeHTMLNodes(input : string) : string {
|
||||
return input.replace(/</g, "<")
|
||||
.replace(/>/g, ">");
|
||||
}
|
||||
|
||||
/**
|
||||
* Check a string before inserting it
|
||||
*
|
||||
* Legacy function that might be completed
|
||||
* / replaced in the future
|
||||
*
|
||||
* @param s The string to check
|
||||
*/
|
||||
export function check_string_before_insert(s: string) : boolean {
|
||||
return s.trim().length >= 3;
|
||||
}
|
Reference in New Issue
Block a user