Skip to content

Commit

Permalink
cleaned up quote removal
Browse files Browse the repository at this point in the history
  • Loading branch information
matthandlersux committed Apr 23, 2010
1 parent af86e65 commit f257941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tag-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
event.preventDefault();

var typed = tag_input.val();
typed = typed.replace(/,+$/,"").replace(/^\s*"(.*)"\s*$/, "$1");
typed = typed.replace(/,+$/,"").trim().replace(/^"/, "").replace(/"$/, "");
typed = typed.trim();

if (typed != "") {
Expand Down

0 comments on commit f257941

Please sign in to comment.