Skip to content

Commit

Permalink
change file name pattern to ignore tmp files
Browse files Browse the repository at this point in the history
  • Loading branch information
drayside committed Nov 28, 2016
1 parent 5798a9a commit a3915a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ app.controller("overviewController", ["$scope", "$http", function($scope, $http)
$scope.projects = [];
$http.get("/project/all").then(function(response) {
_.each(response.data.projects, function(project, filename) {
if (filename.match(/(.*).md/)) {
project.id = filename.match(/(.*).md/)[1];
if (filename.match(/(.*).md$/)) {
project.id = filename.match(/(.*).md$/)[1];
}
else {
return;
Expand Down Expand Up @@ -100,4 +100,4 @@ app.directive('embedSrc', function () {
});
}
};
});
});

0 comments on commit a3915a0

Please sign in to comment.