From 94d611d22f178474d1f3a491cfe60e99bd3293b3 Mon Sep 17 00:00:00 2001 From: 0xShree <49250702+0xShree@users.noreply.github.com> Date: Mon, 1 Aug 2022 08:33:38 +0000 Subject: Change regex expression only to match #[multilib] string (#1364) * Changed regex expression only to match [multilib] string * Update multilib regex expression * Update regex expression Add raw string format --- archinstall/lib/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archinstall') diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index f874c7fa..42f71678 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -325,7 +325,7 @@ class Installer: def enable_multilib_repository(self): # Set up a regular expression pattern of a commented line containing 'multilib' within [] - pattern = re.compile("^#\\[.*multilib.*\\]$") + pattern = re.compile(r"^#\s*\[multilib\]$") # This is used to track if the previous line is a match, so we end up uncommenting the line after the block. matched = False -- cgit v1.2.3-54-g00ecf