Browse Source

docs: Allow manual pages with capital letters

Fix opening 'Creating a scene' page with 'edit this page'.
Greg Guthe 12 years ago
parent
commit
5b042a6a3d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/page.js

+ 1 - 1
docs/page.js

@@ -10,7 +10,7 @@ var onDocumentLoad = function ( event ) {
 		name = name.replace(/\-/g, ' ');
 		name = name.replace(/\-/g, ' ');
 
 
 		path = pathname.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 {
 	} else {