Add contains_char() for single-character 'contains' calls.
This commit is contained in:
parent
eb5103093c
commit
b5c31ebb41
61 changed files with 108 additions and 99 deletions
|
|
@ -223,7 +223,7 @@ RemoteDebuggerPeer *RemoteDebuggerPeerTCP::create(const String &p_uri) {
|
|||
String debug_host = p_uri.replace("tcp://", "");
|
||||
uint16_t debug_port = 6007;
|
||||
|
||||
if (debug_host.contains(":")) {
|
||||
if (debug_host.contains_char(':')) {
|
||||
int sep_pos = debug_host.rfind_char(':');
|
||||
debug_port = debug_host.substr(sep_pos + 1).to_int();
|
||||
debug_host = debug_host.substr(0, sep_pos);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue