Skip to content

Commit

Permalink
THe title should catch every text within the <h:title> tag
Browse files Browse the repository at this point in the history
This was stopping when it encountered a < sign

Fixes #917
  • Loading branch information
ukanga committed Mar 28, 2017
1 parent 7f39d5b commit 2cccfc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onadata/apps/logger/models/xform.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
u'note',
]
XFORM_TITLE_LENGTH = 255
title_pattern = re.compile(r"<h:title>([^<]+)</h:title>")
title_pattern = re.compile(r"<h:title>(.*?)</h:title>")


def _encode_for_mongo(key):
Expand Down

0 comments on commit 2cccfc5

Please sign in to comment.