Skip to content

Commit 1ef4dba

Browse files
committed
fix: correct Pandora'sBox regex to handle all filename formats
The old regex captured .release as part of the version and swapped mc/version for old-format filenames. The new regex uses greedy (?:.*-)? to anchor version matching after the last hyphen delimiter, and [2-9]\. to distinguish mod versions (>=2.0) from MC versions.
1 parent 99e3aed commit 1ef4dba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mod_polling/mods.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@
628628
"active": true,
629629
"curse": {
630630
"id": "222896",
631-
"regex": "pandorasbox-(?P<mc>[0-9]+(?:\\.[0-9]+)+)-(?:(?:Fabric|(?:Neo)?Forge)-)?(?P<version>[0-9]+(?:\\.[0-9]+)+(?:\\.release)?)\\.jar"
631+
"regex": "pandorasbox-(?:.*-)?(?P<version>[2-9]\\.[0-9]+(?:\\.[0-9]+)*)(?:-.+)?(?:\\.release)?\\.jar"
632632
}
633633
},
634634
"RecurrentComplex": {

0 commit comments

Comments
 (0)