Skip to content

Commit

Permalink
fix: removes comments after a value in axis registry (#126)
Browse files Browse the repository at this point in the history
* fix: removes comments after a value

* chore: update axis registry
  • Loading branch information
ayuhito authored Apr 29, 2023
1 parent 6f47835 commit 9dbeefe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions data/axis-registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"tag": "EHLT",
"min": 0,
"max": 1000,
"default": null,
"default": 12,
"precision": 0
},
{
Expand All @@ -52,7 +52,7 @@
"tag": "EDPT",
"min": 0,
"max": 1000,
"default": null,
"default": 100,
"precision": 0
},
{
Expand Down Expand Up @@ -268,7 +268,7 @@
"tag": "YTFI",
"min": -1000,
"max": 2000,
"default": null,
"default": 600,
"precision": 0
},
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "google-font-metadata",
"description": "A metadata generator for Google Fonts.",
"version": "5.1.4",
"version": "5.1.5",
"author": "Ayuhito <[email protected]>",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/axis-gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const downloadAxis = async (axis: AxisProto): Promise<AxisObject> => {
for (const line of lines) {
const [key, value] = line.split(':');
// @ts-ignore - these are known tags
data[key.trim()] = value.trim().replace(/"/g, '');
data[key.trim()] = value.split('#')[0].trim().replace(/"/g, ''); // remove comments and quotes
}

const result = {
Expand Down

0 comments on commit 9dbeefe

Please sign in to comment.