yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Merge pull request #5156 from comex/xx-raws

configure_motion_touch: Fix unescaped backslash in regex
This commit is contained in:
bunnei 2020-12-08 09:39:47 -08:00 committed by GitHub
commit 00c6254129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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();