We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eb7c85 commit 388216aCopy full SHA for 388216a
src/replace.ts
@@ -1,6 +1,8 @@
1
export const replaceContents = (start: string, end: string, readme: string, contents: string) => {
2
- if (!readme.includes(start) || !readme.includes(end))
+ if (!readme.includes(start) || !readme.includes(end)) {
3
console.log("Starting and ending string not found");
4
+ return readme;
5
+ }
6
7
const startString = readme.split(start)[0];
8
const endString = readme.split(end)[1];
0 commit comments