Skip to content

Commit bf35e28

Browse files
committed
Correct regular expression
1 parent 6d3b6bc commit bf35e28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ibllib/pipes/ephys_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ def _fetch_iblsorter_run_version(log_file):
619619
line = fid.readline()
620620
version = re.search('version (.*), output', line)
621621
version = version or re.search('version (.*)', line) # old versions have output, new have a version line
622-
version = re.sub('\\^[[0-9]+m', '', version.group(1)) # removes the coloring tags
622+
version = re.sub(r'\^\[{2}[0-9]+m', '', version.group(1)) # removes the coloring tags
623623
return version
624624

625625
def _run_iblsort(self, ap_file):

0 commit comments

Comments
 (0)