@timeback/core 0.2.1-beta.20260314020510 → 0.2.1-beta.20260314134943

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.
Files changed (2) hide show
  1. package/dist/qti.js +1 -1
  2. package/package.json +1 -1
package/dist/qti.js CHANGED
@@ -11,7 +11,7 @@ function extractChoices(xml) {
11
11
  if (!xml)
12
12
  return [];
13
13
  const choices = [];
14
- const regex = /<qti-simple-choice[^>]*identifier="([^"]+)"[^>]*>([\s\S]*?)<\/qti-simple-choice>/gi;
14
+ const regex = /<qti-simple-choice[^>]*(?:^|\s)identifier="([^"]+)"[^>]*>([\s\S]*?)<\/qti-simple-choice>/gi;
15
15
  let match;
16
16
  while ((match = regex.exec(xml)) !== null) {
17
17
  let text = match[2] ?? "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timeback/core",
3
- "version": "0.2.1-beta.20260314020510",
3
+ "version": "0.2.1-beta.20260314134943",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {