Skip to content

Commit

Permalink
CQI-104: fixed compiling regex pattern (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
sniedzielski authored Oct 19, 2023
1 parent 316aa3d commit 6fe20f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_save(self):
#self.assertEquals(self.user.lastName, "Manal")

def to_camel_case_key(self, input):
pattern = re.compile(r'(?<!^)(?=[A-Z]|[0-9]+)')
pattern = re.compile(r'(?<=[a-z0-9])(?=[A-Z])')
if isinstance(input, list):
res = []
for elm in input:
Expand Down

0 comments on commit 6fe20f0

Please sign in to comment.