From 616ea9d7dfed4ad1387b1b2354faa9d6f2986207 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 28 Feb 2016 15:55:38 -0500 Subject: [PATCH] Improve 'guides' type detection --- assets/javascripts/collections/types.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/collections/types.coffee b/assets/javascripts/collections/types.coffee index 2adb7924..080a118e 100644 --- a/assets/javascripts/collections/types.coffee +++ b/assets/javascripts/collections/types.coffee @@ -7,7 +7,7 @@ class app.collections.Types extends app.Collection (result[@_groupFor(type)] ||= []).push(type) result.filter (e) -> e.length > 0 - GUIDES_RGX = /(^|[\s\(])(guide|tutorial|reference|getting\ started)/i + GUIDES_RGX = /(^|[\s\(])(guide|guides|tutorial|reference|getting\ started)($|[\s\):])/i _groupFor: (type) -> if GUIDES_RGX.test(type.name)