Skip to content

Commit

Permalink
Merge pull request #25 from Elthan/bug-23
Browse files Browse the repository at this point in the history
Better tag parsing (issue #23)
  • Loading branch information
torgeirl committed Jun 19, 2018
2 parents bd066c1 + 50a6ed2 commit 7c6ad4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trix/trix_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def split_commaseparated_tags(cls, commaseparatedtags):
else:
return [
cls.normalize_tag(tagstring)
for tagstring in commaseparatedtags.split(',')]
for tagstring in list(filter(None, re.split('[,\s]', commaseparatedtags)))]


class Course(models.Model):
Expand Down

0 comments on commit 7c6ad4a

Please sign in to comment.