Permalink
Browse files

replace ALL the spaces when generating the ID for projects

  • Loading branch information...
1 parent 9196c7c commit b6b6e24ceb02fcad70b20bbfaa9f4500e1dfb732 @btford committed Jun 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/bwa.js
View
2 js/bwa.js
@@ -79,7 +79,7 @@ app.controller('BWAController', function ($scope, $http, $filter) {
// add tags
angular.forEach(data.projects, function (project) {
- project.id = project.name.replace(' ', '-');
+ project.id = project.name.replace(/ /g, '-');
angular.forEach(project.tags, function (tag) {
// ensure tags are unique

0 comments on commit b6b6e24

Please sign in to comment.