Skip to content

Commit

Permalink
coerce to str
Browse files Browse the repository at this point in the history
  • Loading branch information
huiwengoh committed Jun 18, 2024
1 parent ae24577 commit fed9ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cleanlab_studio/internal/enrichment_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_regex_match_or_replacement(
compiled_pattern = re.compile(regex)
pattern_match = compiled_pattern.findall(response)
if len(pattern_match) > 0:
return pattern_match[0]
return str(pattern_match[0])
return None

# if the regex is a tuple (or list of tuples), do replacement
Expand Down

0 comments on commit fed9ac4

Please sign in to comment.