Lowercase Segwit uppercase addresses for tracking matching.

This commit is contained in:
softsimon
2021-09-05 00:30:24 +04:00
parent 1277e58e68
commit b71330c606
2 changed files with 8 additions and 1 deletions

View File

@@ -69,6 +69,9 @@ export class AddressComponent implements OnInit, OnDestroy {
this.transactions = null;
document.body.scrollTo(0, 0);
this.addressString = params.get('id') || '';
if (/^[A-Z]{2,5}1[AC-HJ-NP-Z02-9]{8,100}$/.test(this.addressString)) {
this.addressString = this.addressString.toLowerCase();
}
this.seoService.setTitle($localize`:@@address.component.browser-title:Address: ${this.addressString}:INTERPOLATION:`);
return merge(