We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3f464c commit c4a78b8Copy full SHA for c4a78b8
1 file changed
public/scripts/hackorum-patch
@@ -106,9 +106,9 @@ class HackorumPatch
106
def sort_patch_files(files)
107
files.sort_by do |f|
108
basename = File.basename(f)
109
- # Match sequence number: digits followed by hyphen before the actual patch name
+ # Match sequence number: first 4+ digit group followed by a hyphen
110
# e.g., "0001-subject.patch" or "nocfbot.v2-0005-subject.patch"
111
- if basename =~ /(\d+)-[^-]+\.(patch|diff)$/i
+ if basename =~ /(\d{4,})-.*\.(patch|diff)$/i
112
[$1.to_i, basename]
113
else
114
# Fallback: sort alphabetically but after numbered patches
0 commit comments