mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-31 19:51:45 +02:00
Allow everything Unicode except noncharacters and control characters
Thanks mniip, see a113cbe
.
This commit is contained in:
@@ -263,7 +263,7 @@ bool Textbox::CharacterValid(int character)
|
|||||||
return true;
|
return true;
|
||||||
case All:
|
case All:
|
||||||
default:
|
default:
|
||||||
return character >= ' ';
|
return character >= ' ' && character <= 0x10FFFF && !(character >= 0xD800 && character <= 0xDFFF) && !(character >= 0xFDD0 && character <= 0xFDEF) && !((character & 0xFFFF) >= 0xFFFE);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user