Skip to content

Commit

Permalink
fix: adjust address validation to allow p2sh (#86)
Browse files Browse the repository at this point in the history
* fix: adjust address validation to allow p2sh

Also drop support for non-existing x and Y prefixes while at it

* chore: run build and bump version

---------

Co-authored-by: strophy <[email protected]>
  • Loading branch information
UdjinM6 and strophy authored Aug 14, 2023
1 parent 75c0024 commit 4c885ea
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@dashevo/insight-ui",
"description": "An open-source frontend for the Insight API. The Insight API provides you with a convenient, powerful and simple way to query and broadcast data on the Dash network and build your own services with it.",
"version": "4.0.3",
"version": "4.0.4",
"repository": "git://github.com/dashevo/insight-ui.git",
"contributors": [
{
Expand Down
2 changes: 1 addition & 1 deletion public/js/angularjs-all.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/js/main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/vendors.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/src/js/services/address.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ angular.module('insight.address')
return {
test: function (addressStr) {

return /^[XxYy][1-9A-Za-z][^OIl]{20,40}/.test(addressStr);
return /^[Xy789][1-9A-Za-z][^OIl]{20,40}/.test(addressStr);
}
};
});

0 comments on commit 4c885ea

Please sign in to comment.