refactor code
This commit is contained in:
parent
7b1f8ddef0
commit
5f8d2e706e
@ -12,12 +12,14 @@
|
|||||||
|
|
||||||
## 4.3. 일정표(Schedule)
|
## 4.3. 일정표(Schedule)
|
||||||
|
|
||||||
|
일정은 다음 표와 같다.
|
||||||
|
|
||||||
<%
|
<%
|
||||||
const getIssueByNumber = (n) => it.issues.filter(x=> x.number === n)[0];
|
const getIssueByNumber = (n) => it.issues.filter(x=> x.number === n)[0];
|
||||||
|
|
||||||
const trId= (n)=>{
|
const trId= (n)=>{
|
||||||
const title = getIssueByNumber(n).title;
|
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) => {
|
const inTable = (arr) => {
|
||||||
return arr.map(x=> `[#${x}](./specific.md#${trId(x)})`).join(', ')
|
return arr.map(x=> `[#${x}](./specific.md#${trId(x)})`).join(', ')
|
||||||
|
Loading…
Reference in New Issue
Block a user