fix marker regex

This commit is contained in:
meld-cp 2023-02-08 20:22:59 +00:00
parent 260e08bc1f
commit e03f2b90d6
6 changed files with 9 additions and 8 deletions

2
dist/manifest.json vendored
View file

@ -1,7 +1,7 @@
{
"id": "meld-build",
"name": "Meld Build",
"version": "0.1.6",
"version": "0.1.7",
"minAppVersion": "1.0.1",
"description": "Write and execute (sandboxed) JavaScript to render templates, query DataView and create dynamic notes.",
"author": "meld-cp",

View file

@ -1,7 +1,7 @@
{
"id": "meld-build",
"name": "Meld Build",
"version": "0.1.6",
"version": "0.1.7",
"minAppVersion": "1.0.1",
"description": "Write and execute (sandboxed) JavaScript to render templates, query DataView and create dynamic notes.",
"author": "meld-cp",

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "meld-build-obsidian-plugin",
"version": "0.1.4",
"version": "0.1.6",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "meld-build-obsidian-plugin",
"version": "0.1.4",
"version": "0.1.6",
"license": "MIT",
"devDependencies": {
"@types/handlebars": "^4.1.0",

View file

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

View file

@ -10,7 +10,7 @@ export class MarkerRunContextImplemention implements TMarkerRunContext {
private markerEndPrefix = '%%=';
private markerEndSuffix = '%%'
private markerValueRegEx = '((?>.|\n|\r)*)';
private markerValueRegEx = '((?:.|\n|\r)*)';
private vault: Vault;
private log: RunLogger;
@ -89,7 +89,7 @@ export class MarkerRunContextImplemention implements TMarkerRunContext {
+ '(.*?)' // marker name end
+ this.escapeRegex(this.markerEndSuffix)
;
//console.debug({exp});
console.debug({exp});
const rgexp = new RegExp(exp, 'g');
const matches = text.matchAll( rgexp );

View file

@ -4,5 +4,6 @@
"0.1.3": "1.0.1",
"0.1.4": "1.0.1",
"0.1.5": "1.0.1",
"0.1.6": "1.0.1"
"0.1.6": "1.0.1",
"0.1.7": "1.0.1"
}