Fixed jira-sync-section-* regex

This commit is contained in:
Alamion 2025-08-25 18:15:23 +03:00
parent 2192cfed42
commit 7824d7bc7e
No known key found for this signature in database
GPG key ID: 0DBEAC95BA38C9EF
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{
"id": "jira-sync",
"name": "Jira Issue Manager",
"version": "1.2.1",
"version": "1.2.2",
"minAppVersion": "1.7.7",
"description": "Get Jira issues, create and update them. Issue status and worklog management.",
"author": "Alamion",

View file

@ -1,6 +1,6 @@
{
"name": "obsidian-sample-plugin",
"version": "1.2.1",
"version": "1.2.2",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"main": "main.js",
"scripts": {

View file

@ -1,6 +1,6 @@
import {debugLog} from "./debugLogging";
const getSectionRegex = (sectionName: string) => new RegExp(`\`jira-sync-section-${sectionName}\`([\\s\\S]*?)\\n([\\s\\S]*?)(?=\\n#+ |\\n\`jira-sync-|$)`, 'g');
const getSectionRegex = (sectionName: string) => new RegExp(`\`jira-sync-section-${sectionName}\`([\\s\\S]*?)\\n?([\\s\\S]*?)(?=\\n#+ |\\n\`jira-sync-|$)`, 'g');
const getLineRegex = (sectionName: string) => new RegExp(`\`jira-sync-line-${sectionName}\` *(.*?)(?=\\n|$)`, 'g');
// ([w-]+)