summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-12-08 18:39:47 +0100
committerGitHub <noreply@github.com>2020-12-08 18:39:47 +0100
commit00c62541292962c4ae720283b46e9e59905d7eec (patch)
tree366d9513c826f452be4e1fb05c38c80654429968
parentMerge pull request #5165 from lioncash/copy-controller (diff)
parentconfigure_motion_touch: Fix unescaped backslash in regex (diff)
downloadyuzu-00c62541292962c4ae720283b46e9e59905d7eec.tar
yuzu-00c62541292962c4ae720283b46e9e59905d7eec.tar.gz
yuzu-00c62541292962c4ae720283b46e9e59905d7eec.tar.bz2
yuzu-00c62541292962c4ae720283b46e9e59905d7eec.tar.lz
yuzu-00c62541292962c4ae720283b46e9e59905d7eec.tar.xz
yuzu-00c62541292962c4ae720283b46e9e59905d7eec.tar.zst
yuzu-00c62541292962c4ae720283b46e9e59905d7eec.zip
-rw-r--r--src/yuzu/configuration/configure_motion_touch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_motion_touch.cpp b/src/yuzu/configuration/configure_motion_touch.cpp
index 2afac591a..c2a7113da 100644
--- a/src/yuzu/configuration/configure_motion_touch.cpp
+++ b/src/yuzu/configuration/configure_motion_touch.cpp
@@ -183,8 +183,8 @@ void ConfigureMotionTouch::ConnectEvents() {
}
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]?["
- "0-9][0-9]?)$")); // a valid ip address
+ 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]|[01]?[0-9][0-9]?)$)re")); // a valid ip address
bool ok;
QString port_text = ui->udp_port->text();
QString server_text = ui->udp_server->text();