diff --git a/manifest.json b/manifest.json index 5b24ff4..7bd091d 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "id": "things-logbook", "name": "Things Logbook", "description": "Sync your Things.app Logbook with Daily Notes", - "version": "0.1.8", + "version": "0.1.9", "author": "Liam Cain", "authorUrl": "https://github.com/liamcain/", "isDesktopOnly": true, diff --git a/package.json b/package.json index 834d7a9..143e808 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-things-logbook-plugin", - "version": "0.1.8", + "version": "0.1.9", "description": "Sync Things.app Logbook with Obsidian", "author": "liamcain", "main": "main.js", diff --git a/src/textUtils.ts b/src/textUtils.ts index 84be9fa..a584a8f 100644 --- a/src/textUtils.ts +++ b/src/textUtils.ts @@ -2,7 +2,7 @@ import type { App, TFile } from "obsidian"; import { getEditorForFile } from "./fileUtils"; export function getHeadingLevel(line = ""): number | null { - const heading = line.match(/^(#{1,6})\s\b/); + const heading = line.match(/^(#{1,6})\s+\S/); return heading ? heading[1].length : null; }