eat-js-sdk 2.1.2 → 2.1.3
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.
|
@@ -7381,7 +7381,7 @@ function RubricSection($$anchor, $$props) {
|
|
|
7381
7381
|
push($$props, true);
|
|
7382
7382
|
let rubric = prop($$props, "rubric", 7);
|
|
7383
7383
|
let headerElement = /* @__PURE__ */ user_derived(() => get(promptRubricElem));
|
|
7384
|
-
const NON_BREAKING_TEXT_REGEX = /('|"|")(-[\w]+|[\w]+-)\
|
|
7384
|
+
const NON_BREAKING_TEXT_REGEX = /('|"|")[\w]+-[\w]+(?:-[\w]+)*\1|('|"|")(?:[A-Z]\.)+[A-Z]\.?\2|('|"|")(?:-[\w]+|[\w]+-)\3|\b(?:[A-Z]\.)+[A-Z]\.?(?:-(?:[A-Z]\.)+[A-Z]\.?)*\b|\b[\w]+-[\w]+(?:-[\w]+)*\b|(?<=\s|^)-[\w]+(?=\s|$|[,.])|(?<=\s|^)[\w]+-(?=\s|$|[,.])/gi;
|
|
7385
7385
|
let processedRubric = /* @__PURE__ */ user_derived(() => rubric() ? rubric().replace(NON_BREAKING_TEXT_REGEX, '<span class="whitespace-nowrap">$&</span>') : rubric());
|
|
7386
7386
|
var $$exports = {
|
|
7387
7387
|
get rubric() {
|