Skip to content

Commit

Permalink
filter any non-ascii chars from the title value
Browse files Browse the repository at this point in the history
filter any non-ascii chars from the title value, because Delicious does
not handle non-ascii chars well.  Returns error on POST to addLink
  • Loading branch information
mmerriam committed May 24, 2014
1 parent 676791c commit ad3c6d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/javascripts/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@
});

controllers.controller('NewLinkCtrl', function ($scope, $location, tab, delicious, analytics) {
$scope.description = tab.title;
$scope.description = tab.title.replace(/[^\x00-\x7F]/g, "");
$scope.header = 'Add link to Delicious';
$scope.myTags = [];
$scope.myTagsLoaded = false;
Expand Down

0 comments on commit ad3c6d4

Please sign in to comment.