Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ayaka14732 committed Apr 22, 2021
1 parent 282195d commit c409eb5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@ def handle_file(filename):
print(' * @return {string} 音韻地位對應的' + name)
print(' */')
print('export function ' + filename + '(音韻地位, 字頭) {')
for line in code.split('\n'):
if line:
line = ' ' + line
print(line)
print(code)
print('}')
print()

with open('README.md') as f:
for match in re.finditer(r'`(.+)\.js`', f.read()):
for match in re.finditer(r'`([a-z0-9_]+)\.js`', f.read()):
filename = match[1]
handle_file(filename)
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qieyun-examples",
"version": "20210419.0.0",
"version": "20210422.0.0",
"description": "JavaScript code examples to generate the derivatives of the Qieyun phonological system using qieyun-js",
"type": "module",
"main": "index.js",
Expand Down

0 comments on commit c409eb5

Please sign in to comment.