mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-23 13:05:41 +01:00
configure_motion_touch: Fix unescaped backslash in regex
Since this is inside a string literal, backslashes that are part of regex syntax have to be escaped. But that's ugly, so convert to a raw string instead.
This commit is contained in:
parent
5933667cb8
commit
2dce2be138
@ -183,8 +183,8 @@ void ConfigureMotionTouch::ConnectEvents() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ConfigureMotionTouch::OnUDPAddServer() {
|
void ConfigureMotionTouch::OnUDPAddServer() {
|
||||||
QRegExp re(tr("^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?["
|
QRegExp re(tr(R"re(^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4]"
|
||||||
"0-9][0-9]?)$")); // a valid ip address
|
"[0-9]|[01]?[0-9][0-9]?)$)re")); // a valid ip address
|
||||||
bool ok;
|
bool ok;
|
||||||
QString port_text = ui->udp_port->text();
|
QString port_text = ui->udp_port->text();
|
||||||
QString server_text = ui->udp_server->text();
|
QString server_text = ui->udp_server->text();
|
||||||
|
Loading…
Reference in New Issue
Block a user