From a916124b1031ca4eaf9e6689feae428145a2ac9c Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Thu, 26 Jan 2023 15:38:12 -0600 Subject: config-mgmt: T4962: fix typo in regex --- python/vyos/config_mgmt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/vyos/config_mgmt.py b/python/vyos/config_mgmt.py index 1be63b08f..772c62631 100644 --- a/python/vyos/config_mgmt.py +++ b/python/vyos/config_mgmt.py @@ -428,7 +428,7 @@ Proceed ?''' # @staticmethod def _strip_version(s): - return re.split(r'(//)', s)[0] + return re.split(r'(^//)', s)[0] def _get_saved_config_tree(self): with open(config_file) as f: -- cgit v1.2.3