Procházet zdrojové kódy

Add space character support (#24775)

sunag před 2 roky
rodič
revize
3f235f8fcf
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      examples/index.html

+ 1 - 1
examples/index.html

@@ -313,7 +313,7 @@
 
 			const link = links[ file ];
 			if ( file in tags ) file += ' ' + tags[ file ].join( ' ' );
-			const res = file.match( exp );
+			const res = file.replace( /_+/g, ' ' ).match( exp );
 
 			if ( res && res.length > 0 ) {