Skip to content

Commit

Permalink
Merge pull request #27 from khalsz/bugfix/convert-to-camel-case
Browse files Browse the repository at this point in the history
fix: adjusted the rege4x pattern to match more than 1 upper after low…
  • Loading branch information
khalsz authored Sep 20, 2024
2 parents 37c34f8 + e01904a commit 98181a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate_camel_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# regex to match camel case
def match_camel_case(s):
# match camelCase format using regular expression
return bool(re.match(r'^[$a-z]+([A-Z][a-z]+)*$', s))
return bool(re.match(r'^[$a-z]+([.A-Z]+[a-z]*)*$', s))


def validate_camel_case(data):
Expand Down

0 comments on commit 98181a0

Please sign in to comment.