소스 검색

Add space character support (#24775)

sunag 2 년 전
부모
커밋
3f235f8fcf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 ) {