ソースを参照

Merge pull request #19887 from Mugen87/dev32

Examples: Trim search terms.
Mr.doob 5 年 前
コミット
6abf59377a
1 ファイル変更2 行追加2 行削除
  1. 2 2
      examples/index.html

+ 2 - 2
examples/index.html

@@ -232,7 +232,7 @@
 
 		function updateFilter() {
 
-			var v = filterInput.value;
+			var v = filterInput.value.trim();
 
 			if ( v !== '' ) {
 
@@ -266,7 +266,7 @@
 
 			var link = links[ file ];
 			var name = getName( file );
-			if ( file in tags ) file += tags[ file ].join( ' ' );
+			if ( file in tags ) file += ' ' + tags[ file ].join( ' ' );
 			var res = file.match( exp );
 			var text;