Explorar o código

Add space character support (#24775)

sunag %!s(int64=2) %!d(string=hai) anos
pai
achega
3f235f8fcf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ) {