From 5f8d2e706e95521f41c52169c2d94df3120fc0ce Mon Sep 17 00:00:00 2001 From: monoid Date: Sat, 11 Jun 2022 19:59:53 +0900 Subject: [PATCH] refactor code --- src/support.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/support.md b/src/support.md index 545277a..54be753 100644 --- a/src/support.md +++ b/src/support.md @@ -12,12 +12,14 @@ ## 4.3. 일정표(Schedule) +일정은 다음 표와 같다. + <% const getIssueByNumber = (n) => it.issues.filter(x=> x.number === n)[0]; const trId= (n)=>{ const title = getIssueByNumber(n).title; -return `(#${n}) ${title}`.replaceAll(/[^A-Za-z\s0-9]/gi,"").toLocaleLowerCase().replaceAll(" ","-"); +return it.toHeadId(`(#${n}) ${title}`); } const inTable = (arr) => { return arr.map(x=> `[#${x}](./specific.md#${trId(x)})`).join(', ')