Add Youtube videos to the map (#13592)

This commit is contained in:
Stuart Taylor
2017-05-04 00:03:59 +01:00
committed by Quincy Larson
parent 0d9db6ea35
commit 4a3fcba501
23 changed files with 711 additions and 14 deletions

View File

@@ -506,7 +506,7 @@ export function applyFilterToMap(tree, filterRegex) {
// if leaf (challenge) then test if regex is a match
if (!Array.isArray(node.children)) {
// does challenge name meet filter criteria?
if (filterRegex.test(node.title)) {
if (filterRegex.test(node.title) || filterRegex.test(node.name)) {
// is challenge currently hidden?
if (node.isHidden) {
// unhide challenge, it matches