From 2128e1ea0599bf7c9dee0365469de2f859532186 Mon Sep 17 00:00:00 2001 From: Randolf Scholz Date: Mon, 11 Mar 2024 11:11:52 +0100 Subject: [PATCH] added optional caputre pattern for subfix (#4193) --- src/core/cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cache.ts b/src/core/cache.ts index 948bde9bc..54c37321b 100644 --- a/src/core/cache.ts +++ b/src/core/cache.ts @@ -387,7 +387,7 @@ function updateElements(fileCache: FileCache) { * for. */ function updateBibfiles(fileCache: FileCache) { - const bibReg = /(?:\\(?:bibliography|addbibresource)(?:\[[^[\]{}]*\])?){([\s\S]+?)}|(?:\\putbib)\[(.+?)\]/gm + const bibReg = /(?:\\(?:bibliography|addbibresource)(?:\[[^[\]{}]*\])?){(?:\\subfix{)?([\s\S]+?)(?:\})?}|(?:\\putbib)\[(.+?)\]/gm while (true) { const result = bibReg.exec(fileCache.contentTrimmed) if (!result) {