Skip to content

Commit 88e82bd

Browse files
authored
Readd parsing inline comment (#79)
* remove comments as text after hash * remove escaping from colon
1 parent 160fe82 commit 88e82bd

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

contributions.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5359,8 +5359,8 @@ contributions:
53595359
source:
53605360
https://github.com/alexdmiller/shape-mapper/releases/latest/download/shapemapper.txt
53615361
name: Shape Mapper
5362-
authors: '[Alex Miller](https\://alexmiller.cv/)'
5363-
url: https\://github.com/alexdmiller/shape-mapper
5362+
authors: '[Alex Miller](https://alexmiller.cv/)'
5363+
url: https://github.com/alexdmiller/shape-mapper
53645364
categories:
53655365
- 3D
53665366
sentence: Projection mapping library for 3D models
@@ -5401,8 +5401,8 @@ contributions:
54015401
source:
54025402
https://github.com/vincentsijben/vjmotion-processing/releases/latest/download/VJMotion.txt
54035403
name: VJ Motion
5404-
authors: '[Vincent Sijben](https\://github.com/vincentsijben)'
5405-
url: https\://vincentsijben.github.io/vjmotion-processing/
5404+
authors: '[Vincent Sijben](https://github.com/vincentsijben)'
5405+
url: https://vincentsijben.github.io/vjmotion-processing/
54065406
categories:
54075407
- Math
54085408
- Sound

scripts/parse_and_validate_properties_txt.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ def read_properties_txt(properties_url):
7373
return r.text
7474

7575
def parse_text(properties_raw):
76-
return jp.loads(properties_raw)
76+
properties_dict = {
77+
key: value.split('#')[0].strip() if isinstance(value, str) else value
78+
for key, value in jp.loads(properties_raw).items()
79+
}
80+
return properties_dict
7781

7882
def validate_existing(properties_dict):
7983
# validation on existing contribution is weaker

0 commit comments

Comments
 (0)