mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
added ability to disable emojis on signs
This commit is contained in:
parent
69d3321e16
commit
ccdea98d28
6 changed files with 21 additions and 3 deletions
|
|
@ -77,6 +77,10 @@ class Utils{
|
|||
return preg_match(Utils::emojiRegex, $s);
|
||||
}
|
||||
|
||||
public static function replaceEmoji($s){
|
||||
return preg_replace(Utils::emojiRegex, " ", $s);
|
||||
}
|
||||
|
||||
public static function getCallableIdentifier(callable $variable){
|
||||
if(is_array($variable)){
|
||||
return sha1(strtolower(get_class($variable[0])) . "::" . strtolower($variable[1]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue