Explorar o código

Examples: Trim search terms.

Mugen87 %!s(int64=5) %!d(string=hai) anos
pai
achega
372f17d7e0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      examples/index.html

+ 2 - 2
examples/index.html

@@ -248,7 +248,7 @@
 
 		function updateFilter() {
 
-			var v = filterInput.value;
+			var v = filterInput.value.trim();
 
 			if ( v !== '' ) {
 
@@ -282,7 +282,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;