Closed farling42 closed 1 year ago
I didn't know about "+?" being lazy (as short a match as possible).
NEW: @PDF\[(.+?)(?:#(.+?))?(?:\|(page=\d+))?]\{(.+?)}
@PDF\[(.+?)(?:#(.+?))?(?:\|(page=\d+))?]\{(.+?)}
OLD: @PDF\[([^|#\]]+)(?:#([^\|\]]+))?(?:\|(page=\d+))?\]{([^}]*)}
@PDF\[([^|#\]]+)(?:#([^\|\]]+))?(?:\|(page=\d+))?\]{([^}]*)}
The change could be made in pdf-linker.mjs
OLD was: @PDF\[([^|#\]]+)(?:#([^\|\]]+))?(?:\|([^\]]+))?\]{([^}]*)}
@PDF\[([^|#\]]+)(?:#([^\|\]]+))?(?:\|([^\]]+))?\]{([^}]*)}
New pattern set in 0.41.0
I didn't know about "+?" being lazy (as short a match as possible).
NEW:
@PDF\[(.+?)(?:#(.+?))?(?:\|(page=\d+))?]\{(.+?)}
OLD:
@PDF\[([^|#\]]+)(?:#([^\|\]]+))?(?:\|(page=\d+))?\]{([^}]*)}