Fix node reference when changing elements

This commit is contained in:
barsdeveloper
2024-09-14 22:16:06 +02:00
parent 8b38173204
commit 3f0185fca5
14 changed files with 209 additions and 98 deletions

View File

@@ -35,7 +35,7 @@ export default function initializeSerializerFactory() {
Parsernostrum.regArray(new RegExp(
// @ts-expect-error
`"(${Grammar.Regex.Path.source})'(${Grammar.Regex.Path.source}|${Grammar.symbol.getParser().regexp.source})'"`
)).map(([full, type, path]) => new ObjectReferenceEntity(type, path, full))
)).map(([_0, type, path]) => new ObjectReferenceEntity(type, path, (t, p) => `"${t}'${p}'"`))
),
StringEntity.grammar,
LocalizedTextEntity.grammar,