Skip to content

Commit

Permalink
Safer re.escape for finding depository using its label
Browse files Browse the repository at this point in the history
  • Loading branch information
connie committed Jul 27, 2016
1 parent 9edd391 commit 8f0c922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/evaluateKinetics.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def getKineticsDepository(FullDatabase, family, depositoryLabel):

depository = None
for tempDepository in family.depositories:
if re.search(depositoryLabel, tempDepository.label):
if re.search(re.escape(depositoryLabel), tempDepository.label):
depository=tempDepository
break
else:
Expand Down

0 comments on commit 8f0c922

Please sign in to comment.