Skip to content

Commit 952de17

Browse files
sorahnobu
authored andcommitted
make-snapshot: update RUBY_PATCHLEVEL_STR regexp
the regexp to replace RUBY_PATCHLEVEL_STR for prerelease snapshots doesn't match since GH-8578. follow-up: #8578 follow-up: 68df437
1 parent 5bb7562 commit 952de17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool/make-snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def package(vcs, rev, destdir, tmp = nil)
364364
end
365365
elsif prerelease
366366
versionhdr ||= IO.read("#{v}/version.h")
367-
versionhdr.sub!(/^\#define\s+RUBY_PATCHLEVEL_STR\s+"\K.+?(?=")/, tag)
367+
versionhdr.sub!(/^\#\s*define\s+RUBY_PATCHLEVEL_STR\s+"\K.+?(?=")/, tag) or raise "no match of RUBY_PATCHLEVEL_STR to replace"
368368
IO.write("#{v}/version.h", versionhdr)
369369
else
370370
tag ||= vcs.revision_name(revision)

0 commit comments

Comments
 (0)