Skip to content

Commit 3577521

Browse files
committed
🐛 FIX: Make stringProcessor a Pure Function
1 parent 01849ce commit 3577521

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bulk-mail-cli",
3-
"version": "2.0.5",
3+
"version": "2.0.6",
44
"description": "Do quick, hassle-free email marketing with this small but very powerful tool! 🔥",
55
"main": "dist/src/index.js",
66
"scripts": {

src/cli/utils/stringProcessor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import * as replace from 'replace-string'
44

55
const REGEX = /\{\{(.*?)\}\}/g
6-
const toReplace = []
7-
const swapOutWith = []
86

97
/**
108
* @name stringProcessor
@@ -18,6 +16,8 @@ const swapOutWith = []
1816
*/
1917
export default function stringProcessor(html: string, data): string {
2018
let finalOutput = html
19+
const toReplace = []
20+
const swapOutWith = []
2121

2222
const regexArray = html.match(REGEX)
2323

0 commit comments

Comments
 (0)