Skip to content

Commit

Permalink
Merge pull request #200 from hyroai/ENG-9053-bugfix-IndexError-in-LLM…
Browse files Browse the repository at this point in the history
…-Router

accept ""
  • Loading branch information
guyamram authored Dec 27, 2023
2 parents f0da3f9 + e0e746c commit f0d0f92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamla/string_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def capitalize(text: Text):
>>>capitalize("my name is John Smith")
'My name is John Smith'
"""
return text[0].upper() + text[1:]
return text[0].upper() + text[1:] if text else ""


def regex_match(pattern):
Expand Down

0 comments on commit f0d0f92

Please sign in to comment.