Skip to content

Commit 040e613

Browse files
author
Rubaiyat Khondaker
committed
Made cloze regexp non-global, because of silly javascript error
1 parent 1d0b39d commit 040e613

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/note.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const TAG_SEP:string = " "
1313
export const ID_REGEXP_STR: string = String.raw`\n?(?:<!--)?(?:ID: (\d+).*)`
1414
export const TAG_REGEXP_STR: string = String.raw`(Tags: .*)`
1515

16-
const ANKI_CLOZE_REGEXP: RegExp = /{{c\d+::[\s\S]+?}}/g
16+
const ANKI_CLOZE_REGEXP: RegExp = /{{c\d+::[\s\S]+?}}/
1717
export const CLOZE_ERROR: number = 42
1818

1919
function has_clozes(text: string): boolean {

0 commit comments

Comments
 (0)