Improve 'guides' type detection

pull/359/merge
Thibaut Courouble 9 years ago
parent ebc6be3215
commit 616ea9d7df

@ -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)

Loading…
Cancel
Save