mirror of
https://github.com/docusealco/docuseal
synced 2026-11-16 16:12:32 -05:00
fix variable highlight
This commit is contained in:
1 parent
2f0bcb4a80
commit
de1af49348
2 files changed
+2
-2
No files matched your search
@@ -353,7 +353,7 @@ function buildExtensions ({ Node, Mark, Extension, Plugin, Decoration, Decoratio
|
|||||||
|
|
||||||
const buildDecorations = (doc) => {
|
const buildDecorations = (doc) => {
|
||||||
const decorations = []
|
const decorations = []
|
||||||
const regex = /\{\{?[a-zA-Z0-9_.-]+\}\}?/g
|
const regex = /\{\{?[^{}\n]+\}\}?/g
|
||||||
|
|
||||||
doc.descendants((node, pos) => {
|
doc.descendants((node, pos) => {
|
||||||
if (!node.isText) return
|
if (!node.isText) return
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ export default actionable(targetable(class extends HTMLElement {
|
|||||||
|
|
||||||
const buildDecorations = (doc) => {
|
const buildDecorations = (doc) => {
|
||||||
const decorations = []
|
const decorations = []
|
||||||
const regex = /\{\{?[a-zA-Z0-9_.-]+\}\}?/g
|
const regex = /\{\{?[^{}\n]+\}\}?/g
|
||||||
|
|
||||||
doc.descendants((node, pos) => {
|
doc.descendants((node, pos) => {
|
||||||
if (!node.isText) return
|
if (!node.isText) return
|
||||||
|
|||||||
Reference in new issue
Block a user