Skip to content

Commit 77bfb4d

Browse files
committed
Move/rename sponsored links section
1 parent 372e88d commit 77bfb4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

push.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ sub prompt_for_edit {
8484

8585
# extract/re-inject sponsored links
8686
my $sponsoredLinks = '';
87-
if ($currentText =~ m{ ( ^ --- \n+ \Q*Useful Resources*\E \n .*? \n --- \n ) }smx) {
87+
if ($currentText =~ m{ ( ^ [#] \Q Sponsored Resources\E \n .*? \n --- \n ) }smx) {
8888
$sponsoredLinks = $1 . "\n";
89-
$proposedText =~ s%$supportedTagsRegex%$1$2$sponsoredLinks%;
89+
$proposedText =~ s%$supportedTagsRegex%$sponsoredLinks$1$2%;
9090
}
9191

9292
my $alwaysShortTags = ($proposedFile eq 'neo4j/README.md');
@@ -103,7 +103,7 @@ sub prompt_for_edit {
103103
my $trimmedText = $proposedText;
104104

105105
# if our text is too long for the Hub length limit, let's first try removing the "Supported tags" list and add $tagsNote and see if that's enough to let us put the full image documentation
106-
$trimmedText =~ s%$supportedTagsRegex%$1$tagsNote$sponsoredLinks%ms;
106+
$trimmedText =~ s%$supportedTagsRegex%$sponsoredLinks$1$tagsNote%ms;
107107
# (we scrape until the next "h1" or a line starting with a link which is likely a build status badge for an architecture-namespace)
108108

109109
$proposedText = $trimmedText if $alwaysShortTags;

0 commit comments

Comments
 (0)