Browse Source

Simplifying review comment changes.

pull/4023/head
mike12345567 6 years ago
parent
commit
1a1d09862a
  1. 3
      packages/server/src/workflows/thread.js

3
packages/server/src/workflows/thread.js

@ -10,8 +10,7 @@ function cleanMustache(string) {
"]": "",
}
let regex = new RegExp(/{{[^}}]*}}/g)
let matches = [...string.matchAll(regex)]
for (let match of matches) {
for (let match of string.matchAll(regex)) {
let baseIdx = string.indexOf(match)
for (let key of Object.keys(charToReplace)) {
let idxChar = match[0].indexOf(key)

Loading…
Cancel
Save