From 681bb0c0676c462fb88320f24a78b32ba932445a Mon Sep 17 00:00:00 2001 From: Alex Wolfe Date: Wed, 4 Mar 2015 10:03:49 -0800 Subject: [PATCH] bug fix --- public/_includes/_scripts-include.jade | 2 -- public/_includes/_version-dropdown.jade | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/_includes/_scripts-include.jade b/public/_includes/_scripts-include.jade index 370c21958a..a0499df8ac 100644 --- a/public/_includes/_scripts-include.jade +++ b/public/_includes/_scripts-include.jade @@ -2,8 +2,6 @@ script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.js") script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular-animate.js") script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular-aria.js") - - script(src="https://rawgit.com/angular/bower-material/master/angular-material.js") diff --git a/public/_includes/_version-dropdown.jade b/public/_includes/_version-dropdown.jade index 73a71bbd59..249f8a2786 100644 --- a/public/_includes/_version-dropdown.jade +++ b/public/_includes/_version-dropdown.jade @@ -2,9 +2,11 @@ language = current.path[1] title = "JavaScript " filter = /(\.html$)/ replace = /(\.html$)|(^index\.html$)/ +version = '' -version = current.path[2].replace(/\_+/gm, ".") +if current.path[2] + version = current.path[2].replace(/\_+/gm, ".")