Skip to content

Commit c1ca5de

Browse files
committed
修改注释正则
1 parent a260cc5 commit c1ca5de

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

hhlc/etc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@ def parseHero(self, files):
3535

3636
for path in files:
3737
heroId = os.path.basename(path).split('.')[0]
38+
print("parse ect:", heroId)
3839
jsontxt = read_file(path)
40+
# replace //
3941
jsontxt = re.sub(r'\/\/.*$', '', jsontxt, flags=re.M)
42+
# replace /**/
43+
jsontxt = re.sub(r'\/\*[\w\W]*?\*\/', '', jsontxt, flags=re.M)
44+
# print(jsontxt)
4045
obj = json.loads(jsontxt)
4146
tmpStr += self._parseHero(obj, heroId)
4247

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
setup(
3535
name="hhlc",
36-
version="0.2.2",
36+
version="0.2.3",
3737
url='http://zengrong.net/',
3838
author='zrong',
3939
author_email='zrongzrong@gmail.com',

0 commit comments

Comments
 (0)