Skip to content

Commit

Permalink
make string raw for re escape sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
shaise committed Jun 7, 2024
1 parent a08d59b commit a91fa31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FastenersCmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def onDocumentRestored(self, obj):

def CleanDecimals(self, val):
val = str(val)
if len(re.findall("[.]\d*$", val)) > 0:
if len(re.findall(r"[.]\d*$", val)) > 0:
return val.rstrip('0').rstrip('.')
return val

Expand Down

0 comments on commit a91fa31

Please sign in to comment.