Skip to content

Commit

Permalink
fix: invalid regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Oct 6, 2023
1 parent 7e48a07 commit f653748
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/dpns-contract/schema/dpns-contract-documents.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"normalizedLabel": {
"type": "string",
"pattern": "^[a-km-np-z0-9][a-km-np-z0-9-]{0,61}[a-km-np-z0-9]$",
"pattern": "^[a-hj-km-np-z0-9][a-hj-km-np-z0-9-]{0,61}[a-hj-km-np-z0-9]$",
"maxLength": 63,
"description": "Domain label converted to lowercase for case-insensitive uniqueness validation. \"o\", \"i\" and \"l\" replaced with \"0\" and \"1\" to mitigate homograph attack. e.g. 'b0b'",
"$comment": "Must be equal to the label in lowercase. \"o\", \"i\" and \"l\" must be replaced with \"0\" and \"1\"."
Expand All @@ -56,7 +56,7 @@
},
"normalizedParentDomainName": {
"type": "string",
"pattern": "^$|^[a-km-np-z0-9][a-km-np-z0-9-\\.]{0,61}[a-km-np-z0-9]$",
"pattern": "^$|^[a-hj-km-np-z0-9][a-hj-km-np-z0-9-\\.]{0,61}[a-hj-km-np-z0-9]$",
"minLength": 0,
"maxLength": 63,
"description": "A parent domain name in lowercase for case-insensitive uniqueness validation. \"o\", \"i\" and \"l\" replaced with \"0\" and \"1\" to mitigate homograph attack. e.g. 'dash'",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ mod tests {
assert_eq!(
root_hash,
[
26, 79, 77, 58, 36, 121, 171, 150, 55, 87, 59, 84, 43, 219, 75, 199, 83, 88,
42, 142, 124, 15, 145, 107, 235, 201, 226, 10, 204, 135, 85, 186
153, 189, 142, 116, 200, 232, 184, 243, 200, 66, 54, 210, 25, 3, 35, 2, 73, 24,
70, 226, 156, 101, 203, 28, 42, 22, 32, 50, 92, 148, 98, 218
]
)
}
Expand Down
4 changes: 2 additions & 2 deletions packages/rs-drive-abci/tests/strategy_tests/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ mod tests {
.unwrap()
.unwrap()
),
"e8329d2833c988f0743b3a9ce566884cd2f7ec7a919cac586442e393cba3d77d".to_string()
"c7f24ca8edbf2093b4ee2522cf9503f5d7e8fc7cbc5f414af743d9c606407356".to_string()
)
}

Expand Down Expand Up @@ -1468,7 +1468,7 @@ mod tests {
.unwrap()
.unwrap()
),
"f86659952f50419f3385a94f8efc8efea55cb1c1b27950a33b1b90e0b972969d".to_string()
"413aabf2842e9a057e7420d1f3449c6dd899e07e7a30d5533c423971af185d10".to_string()
)
}

Expand Down

0 comments on commit f653748

Please sign in to comment.