From fb29913ef03843da663f405c873d4b16e30705a4 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 16 Jul 2021 14:21:39 -0700 Subject: [PATCH] Add lint fixes --- src/domain/session/room/timeline/MessageBody.js | 2 +- src/domain/session/room/timeline/tiles/BaseTextTile.js | 2 +- src/platform/web/parsehtml.js | 2 +- src/platform/web/ui/session/room/timeline/TextMessageView.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/domain/session/room/timeline/MessageBody.js b/src/domain/session/room/timeline/MessageBody.js index b739692c..d6a61e69 100644 --- a/src/domain/session/room/timeline/MessageBody.js +++ b/src/domain/session/room/timeline/MessageBody.js @@ -100,7 +100,7 @@ export class ImagePart { } get type() { return "image"; } -}; +} export class PillPart { constructor(id, href, children) { diff --git a/src/domain/session/room/timeline/tiles/BaseTextTile.js b/src/domain/session/room/timeline/tiles/BaseTextTile.js index 4e94c958..c6c8cbae 100644 --- a/src/domain/session/room/timeline/tiles/BaseTextTile.js +++ b/src/domain/session/room/timeline/tiles/BaseTextTile.js @@ -31,7 +31,7 @@ export class BaseTextTile extends BaseMessageTile { return "message"; } - _parseBody(body, _) { + _parseBody(body) { return stringAsBody(body.string); } diff --git a/src/platform/web/parsehtml.js b/src/platform/web/parsehtml.js index 856ca691..b86ab4d9 100644 --- a/src/platform/web/parsehtml.js +++ b/src/platform/web/parsehtml.js @@ -55,7 +55,7 @@ class HTMLParseResult { } const sanitizeConfig = { - ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|xxx|mxc):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i, + ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|xxx|mxc):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))/i, } export function parseHTML(html) { diff --git a/src/platform/web/ui/session/room/timeline/TextMessageView.js b/src/platform/web/ui/session/room/timeline/TextMessageView.js index 81ed4be0..5a1ac374 100644 --- a/src/platform/web/ui/session/room/timeline/TextMessageView.js +++ b/src/platform/web/ui/session/room/timeline/TextMessageView.js @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import {tag, text, classNames} from "../../../general/html.js"; +import {tag, text} from "../../../general/html.js"; import {BaseMessageView} from "./BaseMessageView.js"; export class TextMessageView extends BaseMessageView {