Skip to content

Commit 42fa0a0

Browse files
committed
Minor fix
1 parent ea0e18e commit 42fa0a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsonata/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ def safe_replace_first(s: str, pattern: re.Pattern, replacement: str) -> Optiona
722722
r = None
723723
for i in range(0, 10):
724724
try:
725-
r = re.sub(pattern, replacement, s, 1)
725+
r = re.sub(pattern, replacement, s, count=1)
726726
break
727727
except Exception as e:
728728
msg = str(e)

0 commit comments

Comments
 (0)