mirror of
https://github.com/davidhalter/parso.git
synced 2026-04-25 17:05:21 +08:00
Don't use invalid escape sequences in regex, see https://github.com/davidhalter/jedi-vim/issues/843
This commit is contained in:
@@ -252,7 +252,7 @@ class String(Literal):
|
||||
|
||||
@property
|
||||
def string_prefix(self):
|
||||
return re.match('\w*(?=[\'"])', self.value).group(0)
|
||||
return re.match(r'\w*(?=[\'"])', self.value).group(0)
|
||||
|
||||
def _get_payload(self):
|
||||
match = re.search(
|
||||
|
||||
Reference in New Issue
Block a user