File tree Expand file tree Collapse file tree 2 files changed +26
-5
lines changed Expand file tree Collapse file tree 2 files changed +26
-5
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,11 @@ const doc_base = `http://techdocs.broadcom.com/content/broadcom/techdocs/us/en/c
8
8
module . exports = {
9
9
categories : [
10
10
'request' ,
11
- 'workflow' ,
12
- 'change-request' ,
11
+ 'relational-information' ,
12
+ 'problem-category' ,
13
+ 'workflow' ,
14
+ 'task' ,
15
+ 'change-request' ,
13
16
] ,
14
17
doc_base,
15
18
} ;
Original file line number Diff line number Diff line change 1
- const isRequest = category => category === 'request' ;
1
+ const hasNoSuffix = category => {
2
+ switch ( category ) {
3
+ case 'request' :
4
+ case 'problem-category' :
5
+ case 'relational-information' :
6
+ return true ;
7
+ }
2
8
3
- const normalize = category => isRequest ( category ) ? 'request' : `${ category } -objects` ;
9
+ return false ;
10
+ } ;
11
+
12
+ /**
13
+ *
14
+ * Deal with inconsistent naming conventions
15
+ * in the URLS
16
+ */
17
+ const normalize = category => {
18
+ if ( hasNoSuffix ( category ) ) return category ;
19
+
20
+ return `${ category } -objects` ;
21
+ }
4
22
5
23
module . exports = {
6
- normalize,
24
+ normalize,
7
25
}
You can’t perform that action at this time.
0 commit comments