catchup-library-web 2.2.9 → 2.2.10

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.
package/dist/index.js CHANGED
@@ -7201,16 +7201,16 @@ var ActivityEvaluationRubricContent = ({
7201
7201
  Object.keys(evaluationRubricMap).map((key, index) => {
7202
7202
  const currentItem = JSON.parse(evaluationRubricMap[key]);
7203
7203
  const { value } = currentItem;
7204
- const matchedRegex = value.match(/\[(\d+)\]\s*(.*)/);
7205
- let score = 0;
7204
+ const matchedRegex = value.match(/\[(\d+)\]\s*([\s\S]*)/);
7205
+ let points = 0;
7206
7206
  let evaluationRubric = value;
7207
7207
  if (matchedRegex) {
7208
- score = parseFloat(matchedRegex[1]);
7208
+ points = parseFloat(matchedRegex[1]);
7209
7209
  evaluationRubric = matchedRegex[2];
7210
7210
  }
7211
7211
  return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "my-2 flex flex-row gap-x-3", children: [
7212
7212
  /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "font-bold text-xl whitespace-nowrap", children: [
7213
- score,
7213
+ points,
7214
7214
  " ",
7215
7215
  i18n_default.t("points")
7216
7216
  ] }),
package/dist/index.mjs CHANGED
@@ -6978,16 +6978,16 @@ var ActivityEvaluationRubricContent = ({
6978
6978
  Object.keys(evaluationRubricMap).map((key, index) => {
6979
6979
  const currentItem = JSON.parse(evaluationRubricMap[key]);
6980
6980
  const { value } = currentItem;
6981
- const matchedRegex = value.match(/\[(\d+)\]\s*(.*)/);
6982
- let score = 0;
6981
+ const matchedRegex = value.match(/\[(\d+)\]\s*([\s\S]*)/);
6982
+ let points = 0;
6983
6983
  let evaluationRubric = value;
6984
6984
  if (matchedRegex) {
6985
- score = parseFloat(matchedRegex[1]);
6985
+ points = parseFloat(matchedRegex[1]);
6986
6986
  evaluationRubric = matchedRegex[2];
6987
6987
  }
6988
6988
  return /* @__PURE__ */ jsxs34("div", { className: "my-2 flex flex-row gap-x-3", children: [
6989
6989
  /* @__PURE__ */ jsxs34("div", { className: "font-bold text-xl whitespace-nowrap", children: [
6990
- score,
6990
+ points,
6991
6991
  " ",
6992
6992
  i18n_default.t("points")
6993
6993
  ] }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "2.2.9",
3
+ "version": "2.2.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -44,19 +44,19 @@ const ActivityEvaluationRubricContent = ({
44
44
  {Object.keys(evaluationRubricMap).map((key, index) => {
45
45
  const currentItem = JSON.parse(evaluationRubricMap[key]);
46
46
  const { value } = currentItem;
47
- const matchedRegex = value.match(/\[(\d+)\]\s*(.*)/);
48
- let score = 0;
47
+ const matchedRegex = value.match(/\[(\d+)\]\s*([\s\S]*)/);
48
+ let points = 0;
49
49
  let evaluationRubric = value;
50
50
 
51
51
  if (matchedRegex) {
52
- score = parseFloat(matchedRegex[1]);
52
+ points = parseFloat(matchedRegex[1]);
53
53
  evaluationRubric = matchedRegex[2];
54
54
  }
55
55
 
56
56
  return (
57
57
  <div key={`${key}_${index}`} className="my-2 flex flex-row gap-x-3">
58
58
  <div className="font-bold text-xl whitespace-nowrap">
59
- {score} {i18n.t("points")}
59
+ {points} {i18n.t("points")}
60
60
  </div>
61
61
  <p className="flex-1 text-xl whitespace-pre-wrap">
62
62
  {constructInputWithSpecialExpressionList(evaluationRubric).map(