Skip to content

Commit a88e743

Browse files
committed
Passing test_is_camel_case
1 parent 850ab4c commit a88e743

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

datajoint/utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ def is_camel_case(s):
7676
>>> is_camel_case("TableName") # returns True
7777
>>> is_camel_case("table_name") # returns False
7878
"""
79-
# return re.match(r"^[A-Z][a-z0-9]+(?:[A-Z][a-z0-9]+)*$", s) is not None
80-
return re.match(
81-
r"[A-Z][a-zA-Z0-9]*", s
82-
) is not None and not contains_non_ascii_char(s)
79+
return re.match(r"^[A-Z][a-z0-9]+(?:[A-Z][a-z0-9]+)*$", s) is not None and not contains_non_ascii_char(s)
8380

8481

8582
def to_camel_case(s):

0 commit comments

Comments
 (0)