We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4fd17e commit e4c6eb6Copy full SHA for e4c6eb6
1 file changed
bibtexparser/latexenc.py
@@ -90,7 +90,7 @@ def protect_uppercase(string):
90
:param string: string to convert
91
:returns: string
92
"""
93
- string = re.sub('([^{]|^)([A-Z])([^}]|$)', '\g<1>{\g<2>}\g<3>', string)
+ string = re.sub(r'([^{]|^)([A-Z])([^}]|$)', r'\g<1>{\g<2>}\g<3>', string)
94
return string
95
96
0 commit comments