Skip to content

Commit

Permalink
Fix: ENS name regex (#291)
Browse files Browse the repository at this point in the history
* fix ens name regex

* update tests

* fix regex

* fix regex

* update changelog

* update version
  • Loading branch information
josemarinas committed Oct 23, 2023
1 parent d2efd90 commit c7fbf55
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions modules/client-common/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ TEMPLATE:
-->

## [UPCOMING]
### Fixed

- ENS name Regex

## [1.7.0]
### Added
Expand Down
2 changes: 1 addition & 1 deletion modules/client-common/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@aragon/sdk-client-common",
"author": "Aragon Association",
"version": "1.7.0",
"version": "1.7.1",
"license": "MIT",
"main": "dist/index.js",
"module": "dist/sdk-client-common.esm.js",
Expand Down
2 changes: 1 addition & 1 deletion modules/client-common/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,5 +416,5 @@ export const IPFS_URI_REGEX =
export const OSX_PROPOSAL_ID_REGEX =
/^(0x[A-Fa-f0-9]{40})_(0x[A-Fa-f0-9]{1,64})$/;
export const HEX_STRING_REGEX = /^(0x)?[0-9a-fA-F]*$/;
export const ENS_REGEX = /^[a-z0-9-]+\.eth$/;
export const ENS_REGEX = /^(?:[a-z0-9-]+\.)*[a-z0-9-]+\.eth$/;
export const SUBDOMAIN_REGEX = /^[a-z0-9-]+$/;
2 changes: 1 addition & 1 deletion modules/client-common/test/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const TEST_ADDRESS = "0x0000000000000000000000000000000000000001";
export const TEST_INVALID_ADDRESS =
"0x000000000000000000000000000000000000000P";

export const TEST_ENS_NAME = "test.eth";
export const TEST_ENS_NAME = "subdomain.test.eth";
export const TEST_INVALID_ENS_NAME = "test.invalid";

export const TEST_IPFS_CID_V0 =
Expand Down
6 changes: 5 additions & 1 deletion modules/client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ TEMPLATE:
-->

## [UPCOMING]
### Fixed

- Ens name regex

## [1.16.1]
### Fixed

- Estimations using `getProvider` instead of `getConnectedSigner` in functions where the identity of the wallet is needed

## [1.16.0]
### Added

### Added
- Helper for `daoUpdateAction` in `Client`

### Changed
Expand Down
4 changes: 2 additions & 2 deletions modules/client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@aragon/sdk-client",
"author": "Aragon Association",
"version": "1.16.1",
"version": "1.16.2",
"license": "MIT",
"main": "dist/index.js",
"module": "dist/sdk-client.esm.js",
Expand Down Expand Up @@ -62,7 +62,7 @@
},
"dependencies": {
"@aragon/osx-ethers": "1.3.0-rc0.3",
"@aragon/sdk-client-common": "^1.7.0",
"@aragon/sdk-client-common": "^1.7.1",
"@aragon/sdk-ipfs": "^1.1.0",
"@ethersproject/abstract-signer": "^5.5.0",
"@ethersproject/bignumber": "^5.6.0",
Expand Down

0 comments on commit c7fbf55

Please sign in to comment.