1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

add extend

This commit is contained in:
2022-12-08 23:36:39 +08:00
parent aa8aae4b4a
commit f3cc95b629
6 changed files with 1323 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
const fs = require('fs');
const path = require('path');
const utils = require('../../utils');
const input = fs.readFileSync(path.join(__dirname, './data.txt'), 'utf8')
let list = input.trim().replace(/[\r\n a-zA-Z0-9-_~!@#$%^&*\(\)<>?:\"\{\},\.\/;'\[\]\|\\=+·!?【】()《》;:,。、…「」〔〕‘’“”»\t ©→]/g, "")
console.log(list)
console.log()
list = Array.from(new Set(list.split(''))).sort((a, b) => a.localeCompare(b)).join('')
console.log(list)
for (let word of list) {
// 汉字
let struct = utils.structure()
struct.word = word
// struct.from.push("extand")
utils.addData(struct, false)
}
utils.saveData()
console.log("done")

1
original/extand/data.txt Normal file

File diff suppressed because one or more lines are too long