Description: use raw strings in regex to prevent invalid escape sequences
Author: Ananthu C V <weepingclown@debian.org>
Bug-Debian: https://bugs.debian.org/1079359
Last-Update: 2024-11-26
--- a/vcf/parser.py
+++ b/vcf/parser.py
@@ -277,3 +277,3 @@
         self._row_pattern = re.compile(self._separator)
-        self._alt_pattern = re.compile('[\[\]]')
+        self._alt_pattern = re.compile(r'[\[\]]')
 
@@ -535,3 +535,3 @@
             orientation = (str[0] == '[' or str[0] == ']')
-            remoteOrientation = (re.search('\[', str) is not None)
+            remoteOrientation = (re.search(r'\[', str) is not None)
             if orientation:
