jira-to-code / src /jira_to_code /tasks /easy_2 /string_utils.py
Navigam's picture
feat: implement ReAct agent architecture with robust JSON parsing and expanded task suite
cd7967c
Raw
History Blame Contribute Delete
296 Bytes
def count_vowels(text):
"""Count the number of vowels (a, e, i, o, u) in the given text.
Should be case-insensitive.
"""
# BUG: Only counts lowercase vowels, ignores uppercase
count = 0
for char in text:
if char in 'aeiou':
count += 1
return count