Skip to content

Commit a0ec86e

Browse files
committed
hackorum-patch: sorting bugfix
The script sometimes failed with a ruby error
1 parent e463e1a commit a0ec86e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/scripts/hackorum-patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class HackorumPatch
108108
# Match sequence number: digits followed by hyphen before the actual patch name
109109
# e.g., "0001-subject.patch" or "nocfbot.v2-0005-subject.patch"
110110
if basename =~ /(\d+)-[^-]+\.(patch|diff)$/i
111-
$1.to_i
111+
[$1.to_i, basename]
112112
else
113113
# Fallback: sort alphabetically but after numbered patches
114114
[Float::INFINITY, basename]

0 commit comments

Comments
 (0)