Skip to content

Commit

Permalink
added optional caputre pattern for subfix (#4193)
Browse files Browse the repository at this point in the history
  • Loading branch information
randolf-scholz authored Mar 11, 2024
1 parent 5c4bfa0 commit 2128e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2128e1e

Please sign in to comment.