Skip to content

Commit d526cc3

Browse files
committed
release_managers_guide: clean up github issue regex
- change $2 to $1 in the replacement part; $2 no longer exists after commit febfc89 - only search for "gh" or "github" at word boundaries; don't replace "gh" in e.g. "high #5" - change `BEGIN{undef $/};` to the `-g` command-line option - remove useless /m flag on the regex (we're not using `^` or `$`)
1 parent 39bc952 commit d526cc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Porting/release_managers_guide.pod

+1-1
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ an entry has been added by F<corelist-perldelta.pl>.
801801

802802
You should add pod links for GitHub issue references thusly:
803803

804-
$ perl -p -i -e'BEGIN{undef $/}; s{(?:GH|github)\s*#(\d+)}{L<GH #$1|https://github.com/Perl/perl5/issues/$2>}img' pod/perldelta.pod
804+
$ perl -gpi -e 's{\b(?:GH|github)\s*#(\d+)}{L<GH #$1|https://github.com/Perl/perl5/issues/$1>}ig' pod/perldelta.pod
805805

806806
Re-read the perldelta to try to find any embarrassing typos and thinkos;
807807
remove any C<TODO> or C<XXX> flags; update the "Known Problems" section

0 commit comments

Comments
 (0)