Comparing version 9.1.9 to 9.1.10
{ | ||
"name": "hybrids", | ||
"version": "9.1.9", | ||
"version": "9.1.10", | ||
"description": "A JavaScript framework for creating fully-featured web applications, components libraries, and single web components with unique declarative and functional architecture", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -19,2 +19,3 @@ import { stringifyElement } from "../utils.js"; | ||
const PLACEHOLDER_REGEXP_ONLY = /^[^A-Za-z]+$/; | ||
const PLACEHOLDER_REGEXP_MSG = new RegExp(getPlaceholder("") + "\\d+"); | ||
@@ -194,3 +195,10 @@ function createContents(parts) { | ||
export function compileTemplate(rawParts, isSVG, isMsg, useLayout) { | ||
const contents = isMsg ? rawParts : createContents(rawParts); | ||
let contents = ""; | ||
if (isMsg) { | ||
contents = rawParts; | ||
rawParts = rawParts.split(PLACEHOLDER_REGEXP_MSG); | ||
} else { | ||
contents = createContents(rawParts); | ||
} | ||
let template = globalThis.document.createElement("template"); | ||
@@ -197,0 +205,0 @@ |
210900
6721