Fix bug with update of inline cards

This commit is contained in:
reuseman 2020-12-11 18:47:41 +01:00
parent 91240cc387
commit 72d48bf17d
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"id": "flashcards-obsidian",
"name": "Flashcards",
"version": "0.4.2",
"version": "0.4.3",
"minAppVersion": "0.9.17",
"description": "Anki integration",
"author": "Alex Colucci",

View File

@ -30,7 +30,7 @@ export class Regex {
this.flashscardsWithTag = new RegExp(str, "gim")
// https://regex101.com/r/DEVfyh/2
str = "( {0,3}[#]{0,6})?(?:(?:[\\t ]*)(?:\\d.|[-+*]|#{1,6}))?(.+) ?:{2} ?(.+?)((?: *#[\\w-]+)+|$)(?:\\n\^(\\d{13}))?"
str = "( {0,3}[#]{0,6})?(?:(?:[\\t ]*)(?:\\d.|[-+*]|#{1,6}))?(.+) ?:{2} ?(.+?)((?: *#[\\w-]+)+|$)(?:\\n\\^(\\d{13}))?"
this.cardsInlineStyle = new RegExp(str, "gim")
}
}