Skip to content

Commit

Permalink
fix: use replaceAll instead of replace for replacing template strings (
Browse files Browse the repository at this point in the history
…#67)

* fix: use replaceAll instead of replace for replacing template strings

* style: added typescript-eslint plugin to eslintrc.json

* chore: updated dist with new code

Co-authored-by: Github Actions <[email protected]>
  • Loading branch information
ravgeetdhillon and web-flow authored Sep 26, 2022
1 parent c35b8ce commit 1721d48
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"plugins": ["jest", "@typescript-eslint"],
"extends": ["plugin:github/recommended"],
"extends": ["plugin:github/recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const actionEmoji = (status) => {
};
const makeMessage = (template, values) => {
for (const k of Object.keys(values)) {
template = template.replace(`{${k}}`, values[k]);
template = template.replaceAll(`{${k}}`, values[k]);
}
return template;
};
Expand Down Expand Up @@ -172,7 +172,7 @@ const run = () => __awaiter(void 0, void 0, void 0, function* () {
}
});
run();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9tYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHdDQUFtRDtBQUNuRCw0Q0FBeUM7QUFDekMsNERBQThCO0FBSTlCLE1BQU0sV0FBVyxHQUFHLENBQUMsTUFBaUIsRUFBRSxFQUFFO0lBQ3hDLElBQUksTUFBTSxLQUFLLFNBQVM7UUFBRSxPQUFPLE1BQU0sQ0FBQTtJQUN2QyxJQUFJLE1BQU0sS0FBSyxTQUFTO1FBQUUsT0FBTyxRQUFRLEN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FLGNBQWMsRUFBRSxrQkFBa0IsRUFBRTtRQUMvQyxJQUFJLEVBQUUsT0FBTztLQUNkLENBQUMsQ0FBQTtBQUNKLENBQUMsQ0FBQSxDQUFBO0FBRUQsTUFBTSxHQUFHLEdBQUcsR0FBUyxFQUFFO0lBQ3JCLElBQUk7UUFDRixNQUFNLFVBQVUsR0FBRyxlQUFlLENBQUMsSUFBQSxlQUFRLEVBQUMsYUFBYSxDQUFDLENBQUMsQ0FBQTtRQUMzRCxNQUFNLFNBQVMsR0FBRyxJQUFBLGVBQVEsRUFBQyxRQUFRLENBQWMsQ0FBQTtRQUNqRCxJQUFJLENBQUMsVUFBVSxDQUFDLFFBQVEsQ0FBQyxTQUFTLENBQUM7WUFBRSxPQUFNO1FBRTNDLE1BQU0sT0FBTyxHQUFHLE1BQU0sSUFBQSxvQkFBWSxHQUFFLENBQUE7UUFDcEMsTUFBTSxXQUFXLENBQUMsT0FBTyxDQUFDLENBQUE7S0FDM0I7SUFBQyxPQUFPLENBQUMsRUFBRTtRQUNWLElBQUksQ0FBQyxZQUFZLEtBQUs7WUFBRSxJQUFBLGdCQUFTLEVBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxDQUFBO0tBQzdDO0FBQ0gsQ0FBQyxDQUFBLENBQUE7QUFFRCxHQUFHLEVBQUUsQ0FBQSJ9

/***/ }),

Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const actionEmoji = (status: JobStatus) => {

const makeMessage = (template: string, values: Record<string, string>) => {
for (const k of Object.keys(values)) {
template = template.replace(`{${k}}`, values[k])
template = template.replaceAll(`{${k}}`, values[k])
}
return template
}
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"strict": true,
"noImplicitAny": true,
"esModuleInterop": true,
"inlineSourceMap": true
"inlineSourceMap": true,
"lib": ["ES2021.String"]
},
"exclude": ["node_modules", "**/*.test.ts"]
}

0 comments on commit 1721d48

Please sign in to comment.