summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@sentrium.io>2019-12-06 15:05:46 -0600
committerJohn Estabrook <jestabro@sentrium.io>2019-12-06 15:10:15 -0600
commit699beffdfc69ab45c6d0e958a4dbf35f744f2a87 (patch)
treeae6b1ed9a2478d98e391b58e71105dd2fde22c09
parentbebd084651b50171e696af232a9c403f69ac6230 (diff)
downloadvyos-1x-699beffdfc69ab45c6d0e958a4dbf35f744f2a87.tar.gz
vyos-1x-699beffdfc69ab45c6d0e958a4dbf35f744f2a87.zip
equuleus: T1862: Use regex pattern \s+ to split strings on whitespace
-rw-r--r--python/vyos/config.py2
1 files changed, 1 insertions, 1 deletions
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):