Skip to content

Commit

Permalink
Fix sanitize filename
Browse files Browse the repository at this point in the history
  • Loading branch information
weichenw committed Nov 29, 2021
1 parent f141fc0 commit d209b3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/sanitizeTitle.ts
Original file line number Diff line number Diff line change
@@ -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);
};

Expand Down
1 change: 1 addition & 0 deletions versions.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit d209b3c

Please sign in to comment.