Merge pull request #1590 from camlow325/allow-at-sign-in-module-examples-path

Allow at sign in module examples path
This commit is contained in:
Nick O'Leary
2018-01-30 10:33:24 +00:00
committed by GitHub
3 changed files with 51 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ module.exports = {
},
get: function(req,res) {
if (req.params[0].indexOf("_examples_/") === 0) {
var m = /^_examples_\/([^\/]+)\/(.*)$/.exec(req.params[0]);
var m = /^_examples_\/(@.*?\/[^\/]+|[^\/]+)\/(.*)$/.exec(req.params[0]);
if (m) {
var module = m[1];
var path = m[2];