From ec1c58855b7209c49026e98185bd52906aa84a37 Mon Sep 17 00:00:00 2001
From: geireann <geireann.lindfield@gmail.com>
Date: Thu, 20 Feb 2025 14:50:56 -0500
Subject: enabled non-uniform image resize

---
 src/client/views/PreviewCursor.tsx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'src/client/views/PreviewCursor.tsx')

diff --git a/src/client/views/PreviewCursor.tsx b/src/client/views/PreviewCursor.tsx
index 7e597879d..eb4e75f74 100644
--- a/src/client/views/PreviewCursor.tsx
+++ b/src/client/views/PreviewCursor.tsx
@@ -46,8 +46,6 @@ export class PreviewCursor extends ObservableReactComponent<object> {
                 this.Visible = false;
             });
 
-            // tests for URL and makes web document
-            const re = /^https?:\/\//g;
             const plain = e.clipboardData.getData('text/plain');
             if (plain && newPoint) {
                 // tests for youtube and makes video document
@@ -62,7 +60,7 @@ export class PreviewCursor extends ObservableReactComponent<object> {
                         y: newPoint[1],
                     };
                     this._slowLoadDocuments?.(plain.split('v=')[1].split('&')[0], options, generatedDocuments, '', undefined, this._addDocument ?? returnFalse).then(batch.end);
-                } else if (re.test(plain)) {
+                } else if ((/^https?:\/\//g).test(plain)) {  // tests for URL and makes web document
                     const url = plain;
                     if (!url.startsWith(window.location.href)) {
                         undoable(
-- 
cgit v1.2.3-70-g09d2

