@ibragim-dev-org/ui-forge-library 1.4.51 → 1.4.52
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.
|
@@ -2113,7 +2113,7 @@ class UiCodeDirective {
|
|
|
2113
2113
|
$codeToCopy = computed(() => {
|
|
2114
2114
|
let code = this.$code();
|
|
2115
2115
|
code = code.replace(/^\s*\n+|\n+\s*$/g, '');
|
|
2116
|
-
code = code.replace(/^(js|ts|css|html|xml|json)\
|
|
2116
|
+
code = code.replace(/^(js|ts|css|html|xml|json)(?=[ \n])/i, '');
|
|
2117
2117
|
code = code.replace(/^const\s+codeLanguages\s*:\s*Record<string,\s*LangRegExps>\s*=\s*\{[\s\S]*?\};?\s*\n?/, '');
|
|
2118
2118
|
return code.trim();
|
|
2119
2119
|
}, ...(ngDevMode ? [{ debugName: "$codeToCopy" }] : []));
|