From d403ed751389ee2bc8d4f26a75f6a727bf49f596 Mon Sep 17 00:00:00 2001 From: N-Pex Date: Wed, 6 Nov 2019 10:41:14 +0100 Subject: [PATCH] Fix linkify imports VECTOR_URL_PATTERN was 'undefined' inside Permalinks.tryTransformPermalinkToLocalHref() --- src/linkify-matrix.js | 2 +- src/utils/permalinks/Permalinks.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/linkify-matrix.js b/src/linkify-matrix.js index fabd9d15ad..889bad682c 100644 --- a/src/linkify-matrix.js +++ b/src/linkify-matrix.js @@ -243,4 +243,4 @@ matrixLinkify.options = { }, }; -module.exports = matrixLinkify; +export default matrixLinkify; diff --git a/src/utils/permalinks/Permalinks.js b/src/utils/permalinks/Permalinks.js index 19dcbd062a..aec7243236 100644 --- a/src/utils/permalinks/Permalinks.js +++ b/src/utils/permalinks/Permalinks.js @@ -20,7 +20,7 @@ import utils from 'matrix-js-sdk/lib/utils'; import SpecPermalinkConstructor, {baseUrl as matrixtoBaseUrl} from "./SpecPermalinkConstructor"; import PermalinkConstructor, {PermalinkParts} from "./PermalinkConstructor"; import RiotPermalinkConstructor from "./RiotPermalinkConstructor"; -import * as matrixLinkify from "../../linkify-matrix"; +import matrixLinkify from "../../linkify-matrix"; const SdkConfig = require("../../SdkConfig");