@redseed/redseed-ui-vue3 2.24.0 → 2.24.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-vue3",
3
- "version": "2.24.0",
3
+ "version": "2.24.1",
4
4
  "description": "RedSeed UI Vue 3 components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,13 +13,13 @@ const props = defineProps({
13
13
  const readMoreId = _.uniqueId('read_more_')
14
14
 
15
15
  /**
16
- * Custom interpolate to allow for
17
- * {{read_more}}, {{ read_more }}, {{ ReadMore }} interpolation
16
+ * Regex to allow for {{read_more}}, {{ read_more }}
18
17
  */
19
- const customInterpolate = /{{([\s\S]+?)}}/g
18
+ const regex = /{{\s*read_more\s*}}/g
20
19
 
21
- const compiled = _.template(props.html, { interpolate: customInterpolate })
22
- const result = compiled({ read_more: `<a id="${readMoreId}"></a>` })
20
+ const replacement = `<a id="${readMoreId}"></a>`
21
+
22
+ const result = _.replace(props.html, regex, replacement)
23
23
 
24
24
  const showMore = ref(false)
25
25