[gnome-terminal] regex: Revert sed accident
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] regex: Revert sed accident
- Date: Mon, 7 Mar 2022 19:27:51 +0000 (UTC)
commit eee2c051235f26fedbbaa57d2ac41d8367f9bcca
Author: Christian Persch <chpe src gnome org>
Date: Mon Mar 7 20:27:16 2022 +0100
regex: Revert sed accident
Partially reverts commit 3eb9350d2efcdc513d07d4e1e61b6e277bc52354.
src/terminal-regex.hh | 4 ++--
1 file 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]