feat: 로그를 변환하는 함수, 기술 변환하는 함수를 ts 이식

This commit is contained in:
2022-04-20 20:59:10 +09:00
parent 683121f4a3
commit 15f5bfbd84
2 changed files with 24 additions and 0 deletions
+2
View File
@@ -1,5 +1,7 @@
const regex = /<([RBGMCLSODYW]1?|1|\/)>/g;
//TODO: <R>에서 더 확장해서, <R|G>, <R|N> 형태로 뒤에 타입을 지정할 수 있도록 한다.
const convertMap: Record<string, string> = {
"R": 'color: red;',
"B": 'color: blue;',