Skip to content

Commit

Permalink
Examples: Simplified tags code.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Apr 30, 2020
1 parent c3f58ff commit e78da33
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,8 @@ <h1><a href="https://threejs.org">three.js</a></h1>

var link = links[ file ];
var name = getName( file );
var matchCandidates = ( tags[ file ] || [] ).slice();
matchCandidates.push( file );
var res = matchCandidates.join( ' ' ).match( exp );
if ( file in tags ) file += tags[ file ].join( ' ' );
var res = file.match( exp );
var text;

if ( res && res.length > 0 ) {
Expand Down

0 comments on commit e78da33

Please sign in to comment.