Skip to content

Commit 7c78de3

Browse files
committed
feat: update follower scrript
1 parent 84060a6 commit 7c78de3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

scripts/src/fetchFollowers.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async function main() {
4242
let readme = readFileSync(READMEFILE_PATH, "utf-8");
4343

4444
readme = readme.replace(
45-
/(?<=<!--START_SECTION:top-followers-heading-->\n### :sparkles: \[My followers \()(\d+)(?=\)\])/,
45+
/(?<=<!--START_SECTION:top-followers-heading-->\n)[\s\S]*(?=\n<!--End_SECTION:top-followers-heading-->)/,
4646
`${followersLength}`
4747
);
4848

@@ -58,10 +58,6 @@ async function main() {
5858
`</div>`
5959
);
6060

61-
62-
63-
// Update the followers count
64-
6561

6662
writeFileSync(READMEFILE_PATH, readme);
6763
}

0 commit comments

Comments
 (0)