From d209b3c00faaaf02b6c6529a97cb529c2d48720e Mon Sep 17 00:00:00 2001 From: weichenw Date: Mon, 29 Nov 2021 23:38:50 +1100 Subject: [PATCH] Fix sanitize filename --- manifest.json | 2 +- src/utils/sanitizeTitle.ts | 2 +- versions.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 7aa1a0e..0685d40 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-hypothesis-plugin", "name": "Hypothes.is", - "version": "0.1.9", + "version": "0.1.10", "minAppVersion": "0.11.0", "description": "Sync your Hypothesis highlights", "author": "weichenw", diff --git a/src/utils/sanitizeTitle.ts b/src/utils/sanitizeTitle.ts index 46f91e7..fac784e 100644 --- a/src/utils/sanitizeTitle.ts +++ b/src/utils/sanitizeTitle.ts @@ -1,7 +1,7 @@ import sanitize from 'sanitize-filename'; export const sanitizeTitle = (title: string): string => { - const santizedTitle = title.replace(/[':]/g, '').trim(); + const santizedTitle = title.replace(/[':#|]/g, '').trim(); return sanitize(santizedTitle); }; diff --git a/versions.json b/versions.json index 1b6298b..160aed4 100644 --- a/versions.json +++ b/versions.json @@ -1,4 +1,5 @@ { + "0.1.10": "0.11.0", "0.1.9": "0.11.0", "0.1.8": "0.11.0", "0.1.7": "0.11.0",