From 699beffdfc69ab45c6d0e958a4dbf35f744f2a87 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Fri, 6 Dec 2019 15:05:46 -0600 Subject: equuleus: T1862: Use regex pattern \s+ to split strings on whitespace --- python/vyos/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/vyos/config.py b/python/vyos/config.py index c7bd96e2f..892dcbff7 100644 --- a/python/vyos/config.py +++ b/python/vyos/config.py @@ -161,7 +161,7 @@ class Config(object): # XXX: for small strings in-place concatenation is not a problem if isinstance(path, str): if path: - self._level = re.split(r'\s*', path) + self._level = re.split(r'\s+', path) else: self._level = [] elif isinstance(path, list): -- cgit v1.2.3