Skip to content

Commit

Permalink
fix: increase maximum file name length to match upper recommended lim…
Browse files Browse the repository at this point in the history
…it for

headlines
  • Loading branch information
florian42 committed Aug 10, 2024
1 parent f66a6f5 commit d4d13f3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-clipper",
"version": "0.2.1",
"version": "0.2.2",
"description": "Obsidian Web Clipper Chrome Extension to save articles and pages from the web in Obsidian",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Obsidian Clipper",
"version": "0.2.1",
"version": "0.2.2",
"description": "Obsidian Web Clipper Chrome Extension to save articles and pages from the web in Obsidian",
"icons": {
"16": "icons/icon_16.png",
Expand Down
4 changes: 2 additions & 2 deletions src/file.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ describe('getFileName', () => {
});

it('shortens filename if it exceeds max characters', () => {
const title = 'A'.repeat(61);
const title = 'A'.repeat(101);
const result = getFileName(title);
expect(result.length).toBe(60);
expect(result.length).toBe(100);
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,5 @@ export function getFileName(
.replace(/\//g, '-')
.replace(/\\/g, '-');
}
return fileName.slice(0, 60);
return fileName.slice(0, 100);
}

0 comments on commit d4d13f3

Please sign in to comment.