Skip to content

Commit

Permalink
fix the escape issue with python 3.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyan2008 committed Dec 19, 2023
1 parent e8c1805 commit e1731d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gosnippets/UltiSnips/go.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ import re
def return_values(s):
# remove everything wrapped in parentheses
s = re.sub("\(.*?\)|\([^)]*$", "", s)
s = re.sub(r"\(.*?\)|\([^)]*$", "", s)
return len(s.split(","))
def opening_par(snip, pos):
Expand Down

0 comments on commit e1731d0

Please sign in to comment.