@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
|
@@ -13,13 +13,13 @@ const props = defineProps({
|
|
|
13
13
|
const readMoreId = _.uniqueId('read_more_')
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* {{read_more}}, {{ read_more }}, {{ ReadMore }} interpolation
|
|
16
|
+
* Regex to allow for {{read_more}}, {{ read_more }}
|
|
18
17
|
*/
|
|
19
|
-
const
|
|
18
|
+
const regex = /{{\s*read_more\s*}}/g
|
|
20
19
|
|
|
21
|
-
const
|
|
22
|
-
|
|
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
|
|