Explorar o código

fixes #18700 as suggested by @mrdoob

makc %!s(int64=5) %!d(string=hai) anos
pai
achega
5dfa6f77f0
Modificáronse 2 ficheiros con 8 adicións e 1 borrados
  1. 5 0
      examples/files.js
  2. 3 1
      examples/index.html

+ 5 - 0
examples/files.js

@@ -388,3 +388,8 @@ var files = {
 		"misc_uv_tests"
 	]
 };
+
+var tags = {
+    "webgl_postprocessing_unreal_bloom": [ "glow" ],
+    "webgl_postprocessing_unreal_bloom_selective": [ "glow" ]
+};

+ 3 - 1
examples/index.html

@@ -246,7 +246,9 @@
 
 			var link = links[ file ];
 			var name = getName( file );
-			var res = file.match( exp );
+			var matchCandidates = ( tags[ file ] || [] ).slice();
+			matchCandidates.push( file );
+			var res = matchCandidates.join( ' ' ).match( exp );
 			var text;
 
 			if ( res && res.length > 0 ) {