Skip to content

Commit

Permalink
fix bug in manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
hazelnutcloud committed Apr 4, 2023
1 parent fcc8e2f commit d4bc96c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v0.3.2
- Fix a bug with passing undefined to the Manifest constructor

# v0.3.1
- Allow empty name to be passed to the Manifest constructor to allow for backwards compatibility.

Expand Down
1 change: 1 addition & 0 deletions src/arkiver/manifest-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class Manifest {
entities: [],
name: "",
};
return;
}
if (name.search(/[^a-zA-Z0-9]/g) !== -1) {
throw new Error(`Invalid name: ${name}`);
Expand Down

1 comment on commit d4bc96c

@vercel
Copy link

@vercel vercel bot commented on d4bc96c Apr 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.