Skip to content

Commit 21d3bcf

Browse files
committed
Correct regular expression to detect ISA
1 parent 07ab462 commit 21d3bcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easybuild/tools/systemtools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ def get_isa_riscv():
649649
if is_readable(PROC_CPUINFO_FP):
650650
_log.debug("Trying to determine ISA string on Linux via %s", PROC_CPUINFO_FP)
651651
proc_cpuinfo = read_file(PROC_CPUINFO_FP)
652-
isa_regex = re.compile(r"^isa\s*:\s*(.*)")
652+
isa_regex = re.compile(r"^isa\s*:\s*(\S+)", re.MULTILINE)
653653
res = isa_regex.search(proc_cpuinfo)
654654
if res:
655655
isa_string = res.group(1)

0 commit comments

Comments
 (0)