theprogrammablemind_4wp 9.4.5-beta.0 → 9.4.5-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -70,6 +70,6 @@
70
70
  "sort-json": "^2.0.0",
71
71
  "uuid": "^8.3.2"
72
72
  },
73
- "version": "9.4.5-beta.0",
73
+ "version": "9.4.5-beta.1",
74
74
  "license": "UNLICENSED"
75
75
  }
@@ -15,6 +15,7 @@ const gs = (g) => async (contexts, separator, lastSeparator) => {
15
15
  lastSeparator = separator
16
16
  }
17
17
  let nextSeparator = ''
18
+ let lastEnd = 0
18
19
  for (let i = 0; i < contexts.length; ++i) {
19
20
  const context = contexts[i]
20
21
  const value = await g(context)
@@ -25,6 +26,10 @@ const gs = (g) => async (contexts, separator, lastSeparator) => {
25
26
  nextSeparator = separator
26
27
  }
27
28
  }
29
+ if (lastEnd + 1 == context.range?.start) {
30
+ nextSeparator = ''
31
+ }
32
+ lastEnd = context.range?.end
28
33
  s += nextSeparator + value
29
34
  }
30
35
  return s