2
0
Эх сурвалжийг харах

Docs: Fixed regexp glitch.

Mr.doob 13 жил өмнө
parent
commit
1d590a47fc
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  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;