Explorar el Código

Docs: Fixed regexp glitch.

Mr.doob hace 13 años
padre
commit
1d590a47fc
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      docs/page.js

+ 2 - 2
docs/page.js

@@ -1,7 +1,7 @@
 var onDocumentLoad = function ( event ) {
 
-	var name = /[A-z|0-9]+.html/.exec( window.location.pathname ).toString().split( '.html' )[ 0 ];
-	var path = /\/api\/[A-z\/]+/.exec( window.location.pathname ).toString().substr( 5 );
+	var name = /[A-z0-9]+.html/.exec( window.location.pathname ).toString().split( '.html' )[ 0 ];
+	var path = /\/api\/[A-z0-9\/]+/.exec( window.location.pathname ).toString().substr( 5 );
 
 	var text = document.body.innerHTML;