Skip to content

Commit

Permalink
🐛 FIX: Make stringProcessor a Pure Function
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarabhirup committed Jan 3, 2020
1 parent 01849ce commit 3577521
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bulk-mail-cli",
"version": "2.0.5",
"version": "2.0.6",
"description": "Do quick, hassle-free email marketing with this small but very powerful tool! 🔥",
"main": "dist/src/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/cli/utils/stringProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import * as replace from 'replace-string'

const REGEX = /\{\{(.*?)\}\}/g
const toReplace = []
const swapOutWith = []

/**
* @name stringProcessor
Expand All @@ -18,6 +16,8 @@ const swapOutWith = []
*/
export default function stringProcessor(html: string, data): string {
let finalOutput = html
const toReplace = []
const swapOutWith = []

const regexArray = html.match(REGEX)

Expand Down

0 comments on commit 3577521

Please sign in to comment.