Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DPLT-1009] feat: contract validation with wild cards #93

Merged
merged 3 commits into from
Jun 5, 2023

Conversation

roshaans
Copy link
Contributor

@roshaans roshaans commented Jun 2, 2023

Contract validation. Rules for a valid contract Id

  • ends with any alphanemural following a . e.g .near or .testnet or .sweat
  • Less than 64 chars, greater than 2.
  • Wildcards need to to follow a . for example: .roshaan.near or ref-finance..near

Note:
Wildcards in between characters without being followed with a . are not supported. For example ref-finance.service*name.near is not supported.

@roshaans roshaans force-pushed the roshaan/contract-filter-validation branch from 42443eb to b3b374a Compare June 2, 2023 18:55
@roshaans roshaans marked this pull request as ready for review June 2, 2023 18:57
Copy link
Collaborator

@gabehamilton gabehamilton left a comment

Choose a reason for hiding this comment

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

Assuming one change to regex

@roshaans roshaans merged commit 5c96438 into main Jun 5, 2023
@roshaans roshaans deleted the roshaan/contract-filter-validation branch June 5, 2023 19:53
@roshaans roshaans mentioned this pull request Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants