[hackers] [quark] Properly escape backslash in regex || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Fri, 21 Jul 2017 18:37:59 +0200 (CEST)

commit 8ec042a1bacde3a54e9ed21d39a84a712a5cabb7
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Fri Jul 21 18:37:55 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Fri Jul 21 18:37:55 2017 +0200

    Properly escape backslash in regex

diff --git a/config.def.h b/config.def.h
index 7abac23..0a020ee 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -20,7 +20,7 @@ static struct {
         regex_t re;
 } vhost[] = {
         /* canonical host host regex directory */
- { "example.org", "^(www\.)?example.org$", "/example.org" },
+ { "example.org", "^(www\\.)?example.org$", "/example.org" },
 };
 
 /* mime-types */
Received on Fri Jul 21 2017 - 18:37:59 CEST

This archive was generated by hypermail 2.3.0 : Fri Jul 21 2017 - 18:49:17 CEST