Skip to content

Instantly share code, notes, and snippets.

View saengmotmi's full-sized avatar
:shipit:

Jong Taek Oh saengmotmi

:shipit:
View GitHub Profile
🌞 Morning 52 commits ██▊░░░░░░░░░░░░░░░░░░ 13.2%
🌆 Daytime 136 commits ███████▏░░░░░░░░░░░░░ 34.4%
🌃 Evening 175 commits █████████▎░░░░░░░░░░░ 44.3%
🌙 Night 32 commits █▋░░░░░░░░░░░░░░░░░░░ 8.1%
import React, { useState, useRef } from "react";
export default function LinkParse() {
const [focus, setFocus] = useState(false);
const renderTag = (line, idx) => {
let result = line.value;
if (line.isBlank || (!line.isURL && line.value)) result += " ";
if (line.isURL)
const bn1 = 12347943875394802934875
const bn2 = 123479438753948029348759
const fillZero = (num) => {
const len = num.toString().length
if (len === 2) {
return "0" + num
} else if (len === 1) {
return "00" + num
} else {
const str1 = "삼조"
const str2 = "삼"
const scaleTable = {
"조": Math.pow(10, 12),
"억": Math.pow(10, 8),
"만": Math.pow(10, 4),
"천": Math.pow(10, 3),
"백": Math.pow(10, 2),
"십": Math.pow(10, 1),
"일": 1