Merge develop

This commit is contained in:
Pieter Vander Vennet 2024-08-26 13:18:39 +02:00
commit 1378c1a779
372 changed files with 26005 additions and 20082 deletions

View file

@ -1779,11 +1779,12 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
}
}
private static emojiRegex = /^\p{Extended_Pictographic}+$/u
private static emojiRegex = /[\p{Extended_Pictographic}🛰]$/u
/**
* Returns 'true' if the given string contains at least one and only emoji characters
* @param string
*
* Utils.isEmoji("⛰\uFE0F") // => true
*/
public static isEmoji(string: string) {
return Utils.emojiRegex.test(string)