Pier Angelo Vendrame pushed to branch tor-browser-102.6.0esr-12.5-1 at The Tor Project / Applications / Tor Browser

Commits:

1 changed file:

Changes:

  • browser/actors/CryptoSafetyChild.jsm
    ... ... @@ -74,7 +74,7 @@ class CryptoSafetyChild extends JSWindowActorChild {
    74 74
     
    
    75 75
           if (event.type == "copy" || event.type == "cut") {
    
    76 76
             this.contentWindow.navigator.clipboard.readText().then(clipText => {
    
    77
    -          const selection = clipText.trim();
    
    77
    +          const selection = clipText.replace(/\s+/g, "");
    
    78 78
               if (looksLikeCryptoAddress(selection)) {
    
    79 79
                 this.sendAsyncMessage("CryptoSafety:CopiedText", {
    
    80 80
                   selection,