1 | /**
|
2 | *
|
3 | */
|
4 |
|
5 | module.exports = (nav) => {
|
6 | const res = {};
|
7 |
|
8 | nav.forEach(item => {
|
9 | const str = '{';
|
10 | if (/^https?.*/.test(item.uri)) {
|
11 | str += `http: ${item.uri}`;
|
12 | } else {
|
13 | str += `md: ${item.uri}`;
|
14 | }
|
15 |
|
16 | str += '}';
|
17 | });
|
18 | } |
\ | No newline at end of file |