mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Add contains_char() for single-character 'contains' calls.
This commit is contained in:
@@ -202,7 +202,7 @@ IPAddress::IPAddress(const String &p_string) {
|
||||
// Wildcard (not a valid IP)
|
||||
wildcard = true;
|
||||
|
||||
} else if (p_string.contains(":")) {
|
||||
} else if (p_string.contains_char(':')) {
|
||||
// IPv6
|
||||
_parse_ipv6(p_string);
|
||||
valid = true;
|
||||
|
||||
Reference in New Issue
Block a user