mirror of
https://github.com/meld-cp/obsidian-build.git
synced 2026-07-22 07:30:25 +00:00
fix marker regex
This commit is contained in:
parent
260e08bc1f
commit
e03f2b90d6
6 changed files with 9 additions and 8 deletions
2
dist/manifest.json
vendored
2
dist/manifest.json
vendored
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
4
package-lock.json
generated
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
Loading…
Reference in a new issue