@quesmed/types-rn 2.2.85 → 2.2.86

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.2.85",
3
+ "version": "2.2.86",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.lightgalleryOsceResolve = void 0;
4
- const lightgalleryRegex = /\[lightgallery\]/;
4
+ const lightgalleryRegex = /\[(lightgallery){1}[0-9]{0,}\]/;
5
5
  function isOsceMarksheet(data) {
6
6
  return 'osceStationId' in data;
7
7
  }
@@ -80,7 +80,11 @@ const lightgalleryMutation = async (text, pictures, cache) => {
80
80
  picturesHTML.push(`![${file}](${uri})`);
81
81
  }
82
82
  if (lightgalleryRegex.test(text)) {
83
- return text.replace(lightgalleryRegex, picturesHTML[0]);
83
+ picturesHTML.forEach((image, index) => {
84
+ const lightgalleryTagToReplace = `[lightgallery${!index ? '' : index}]`;
85
+ text = text.replace(lightgalleryTagToReplace, image);
86
+ });
87
+ return text;
84
88
  }
85
89
  else {
86
90
  return text + '\n\n' + picturesHTML[0] + '\n';