summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2022-03-07 20:27:16 +0100
committerChristian Persch <chpe@src.gnome.org>2022-03-07 20:27:16 +0100
commiteee2c051235f26fedbbaa57d2ac41d8367f9bcca (patch)
tree0584f01865a730e7471d08f952432a4c348aff41
parent43cb1e275ee8d07bbb63a73196b1b3ae788e4898 (diff)
downloadgnome-terminal-eee2c051235f26fedbbaa57d2ac41d8367f9bcca.tar.gz
regex: Revert sed accident
Partially reverts commit 3eb9350d2efcdc513d07d4e1e61b6e277bc52354.
-rw-r--r--src/terminal-regex.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terminal-regex.hh b/src/terminal-regex.hh
index 465df772..6fcc0f90 100644
--- a/src/terminal-regex.hh
+++ b/src/terminal-regex.hh
@@ -88,7 +88,7 @@
/* Ends with :: */
#define IPV6_RIGHT "(?x: (?&S6C){1,7} : )"
/* Is "::" and nothing more */
-#define IPV6NULL "(?x: :: )"
+#define IPV6_NULL "(?x: :: )"
/* The same ones for IPv4-embedded notation, without the actual IPv4 part */
#define IPV6V4_FULL "(?x: (?&S6C){6} )"
@@ -98,7 +98,7 @@
/* IPV6: An IPv6 address (possibly with an embedded IPv4).
* This macro defines both IPV4 and IPV6, since the latter one requires the former. */
-#define IP_DEF IPV4_DEF S6_DEF "(?(DEFINE)(?<IPV6>(?x: (?: " IPV6NULL " | " IPV6_LEFT " | " IPV6_MID " | " IPV6_RIGHT " | " IPV6_FULL " | (?: " IPV6V4_FULL " | " IPV6V4_LEFT " | " IPV6V4_MID " | " IPV6V4_RIGHT " ) (?&IPV4) ) (?! [.:[:xdigit:]] ) )))"
+#define IP_DEF IPV4_DEF S6_DEF "(?(DEFINE)(?<IPV6>(?x: (?: " IPV6_NULL " | " IPV6_LEFT " | " IPV6_MID " | " IPV6_RIGHT " | " IPV6_FULL " | (?: " IPV6V4_FULL " | " IPV6V4_LEFT " | " IPV6V4_MID " | " IPV6V4_RIGHT " ) (?&IPV4) ) (?! [.:[:xdigit:]] ) )))"
/* Either an alphanumeric character or dash; or if [negative lookahead] not ASCII
* then any graphical Unicode character.