浏览代码

docs: Allow manual pages with capital letters

Fix opening 'Creating a scene' page with 'edit this page'.
Greg Guthe 12 年之前
父节点
当前提交
5b042a6a3d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/page.js

+ 1 - 1
docs/page.js

@@ -10,7 +10,7 @@ var onDocumentLoad = function ( event ) {
 		name = name.replace(/\-/g, ' ');
 
 		path = pathname.replace( /\ /g, '-' );
-		path = /\/manual\/[-a-z0-9\/]+/.exec( path ).toString().substr( 8 );
+		path = /\/manual\/[-A-z0-9\/]+/.exec( path ).toString().substr( 8 );
 
 	} else {