Skip to content

Commit

Permalink
loosen name/symbol for default list
Browse files Browse the repository at this point in the history
  • Loading branch information
moodysalem committed Jun 15, 2020
1 parent 826a174 commit 552d0a6
Show file tree
Hide file tree
Showing 4 changed files with 879 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tokenlist.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@
"description": "The name of the token",
"minLength": 1,
"maxLength": 40,
"pattern": "^[\\s\\w]+$"
"pattern": "^[\\s\\w+.]+$"
},
"symbol": {
"type": "string",
"description": "The symbol for the token; must be alphanumeric",
"pattern": "^[a-zA-Z0-9]+$",
"pattern": "^[a-zA-Z0-9+]+$",
"minLength": 1,
"maxLength": 20
},
Expand Down
2 changes: 2 additions & 0 deletions test/__snapshots__/tokenlist.schema.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,6 @@ Array [
]
`;

exports[`schema works for big example schema 1`] = `null`;

exports[`schema works for example schema 1`] = `null`;
Loading

0 comments on commit 552d0a6

Please sign in to comment.