chhantyal / taggit-selectize

Auto-complete/auto-suggestion for django-taggit (django-taggit + selectize.js)
BSD 3-Clause "New" or "Revised" License
68 stars 23 forks source link

Fix the item callback to strip quotes when not the first tag #7

Closed nshafer closed 8 years ago

nshafer commented 8 years ago

This fixes a problem that crops up when there are multiple multi-word tags, the second+ tag will show up with a quote in it. I fixed this by making the regex accept white space between the beginning of the string and the first quote mark, and then also between the last quote mark and the end of the string. Seems to work in my testing.

BTW, still in absolute love with this module... using it every day and thankful for it every day =)

chhantyal commented 8 years ago

Thanks