[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-commit
Subject:    [master] 4a3e03d98 Get rid of a bothersome trailing '.'
From:       Poul-Henning Kamp <phk () FreeBSD ! org>
Date:       2019-05-29 9:54:11
Message-ID: 20190529095411.22E631041D4 () lists ! varnish-cache ! org
[Download RAW message or body]


commit 4a3e03d98d16944733d14cdf668cd4ae09bf7fd8
Author: Poul-Henning Kamp <phk@FreeBSD.org>
Date:   Wed May 29 08:01:45 2019 +0000

    Get rid of a bothersome trailing '.'

diff --git a/lib/libvcc/generate.py b/lib/libvcc/generate.py
index 7e7723ed4..892dfff5b 100755
--- a/lib/libvcc/generate.py
+++ b/lib/libvcc/generate.py
@@ -249,8 +249,8 @@ def parse_var(ln):
     l1 = ln.pop(0).split("``")
     assert len(l1) in (1, 3)
     vn = l1[0].strip()
-    if vn[-1] == '*':
-        vn = vn[:-1]
+    if vn[-2:] == '.*':
+        vn = vn[:-2]
     if len(l1) == 3:
         vlo, vhi = parse_vcl(l1[1])
     else:
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic