Skip to content

Commit

Permalink
fix: allow url that is not in main branch (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
ALPAC-4 authored Mar 26, 2024
1 parent 6303c8c commit 063273f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion _package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@initia/initia-registry-types",
"version": "0.0.7",
"version": "0.0.8",
"description": "The package provides TypeScript type definitions and Zod integration for initia-registry.",
"types": "./dist/types/index.d.ts",
"exports": {
Expand Down
8 changes: 4 additions & 4 deletions _package/src/zods/Chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,15 @@ export const ChainSchema = z
.string()
.regex(
new RegExp(
"^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.png$"
"^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/.+\\.png$"
)
)
.optional(),
svg: z
.string()
.regex(
new RegExp(
"^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.svg$"
"^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/.+\\.svg$"
)
)
.optional(),
Expand Down Expand Up @@ -312,15 +312,15 @@ export const ChainSchema = z
.string()
.regex(
new RegExp(
"^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.png$"
"^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/.+\\.png$"
)
)
.optional(),
svg: z
.string()
.regex(
new RegExp(
"^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.svg$"
"^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/.+\\.svg$"
)
)
.optional(),
Expand Down
8 changes: 4 additions & 4 deletions chain.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,12 @@
"png": {
"type": "string",
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.png$"
"pattern": "^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/.+\\.png$"
},
"svg": {
"type": "string",
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.svg$"
"pattern": "^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/.+\\.svg$"
},
"theme": {
"type": "object",
Expand Down Expand Up @@ -486,12 +486,12 @@
"png": {
"type": "string",
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.png$"
"pattern": "^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/.+\\.png$"
},
"svg": {
"type": "string",
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.svg$"
"pattern": "^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/.+\\.svg$"
}
},
"additionalProperties": false
Expand Down

0 comments on commit 063273f

Please sign in to comment.