aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSubView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-05-21 02:18:38 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-05-21 02:18:38 -0400
commit22e1207fc1f36fbf1e399c4e19eae3a56fadd397 (patch)
tree03cce5a3b773fa8e8f63fd2fd55a6913c2cb0ed4 /src/client/views/collections/CollectionSubView.tsx
parent14972c1bfaf339a66db3464d9ea1f7d0453aa670 (diff)
parent45386f6950e5ae8390486900a430061bfe9e4846 (diff)
merged with master
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
-rw-r--r--src/client/views/collections/CollectionSubView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index 208925b1c..53acc15c3 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -332,7 +332,7 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?:
srcWeb = SelectionManager.SelectedDocuments()[0].props.Document;
srcUrl = (srcWeb.data as WebField).url.href?.match(/http[s]?:\/\/[^/]*/)?.[0];
}
- let reg = new RegExp(Utils.prepend(""), "g");
+ const reg = new RegExp(Utils.prepend(""), "g");
const modHtml = srcUrl ? html.replace(reg, srcUrl) : html;
const htmlDoc = Docs.Create.HtmlDocument(modHtml, { ...options, title: "-web page-", _width: 300, _height: 300 });
Doc.GetProto(htmlDoc)["data-text"] = text;