@ones-editor/editor 2.1.0 → 2.1.1

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
@@ -65123,14 +65123,14 @@ ${codeText}
65123
65123
  const formatString = (str) => {
65124
65124
  var _a, _b;
65125
65125
  let href = str;
65126
- const prefix = (_a = href.match(/^(http|https):\/\//)) == null ? void 0 : _a[0];
65127
- const suffix = href.substring((_b = prefix == null ? void 0 : prefix.length) != null ? _b : 0);
65128
- if (!prefix) {
65126
+ const host = (_a = href == null ? void 0 : href.match(/^(http|https):\/\/[^/]+/)) == null ? void 0 : _a[0];
65127
+ const suffix = href.substring((_b = host == null ? void 0 : host.length) != null ? _b : 0);
65128
+ if (!host || !suffix) {
65129
65129
  return str;
65130
65130
  }
65131
65131
  const hrefDoc = markdownToDoc(suffix);
65132
65132
  if (hrefDoc) {
65133
- href = prefix + findText(hrefDoc);
65133
+ href = host + findText(hrefDoc);
65134
65134
  }
65135
65135
  return href;
65136
65136
  };
@@ -82351,7 +82351,7 @@ ${data2.flowchartText}
82351
82351
  }
82352
82352
  }
82353
82353
  });
82354
- editor.version = "2.1.0";
82354
+ editor.version = "2.1.1";
82355
82355
  if (Logger$2.level === LogLevel.DEBUG) {
82356
82356
  window.setReauthFail = (fail) => {
82357
82357
  window.isReauthError = fail;
@@ -82446,7 +82446,7 @@ ${data2.flowchartText}
82446
82446
  if (!clientType.isMobile) {
82447
82447
  OnesEditorToolbar.register(editor);
82448
82448
  }
82449
- editor.version = "2.1.0";
82449
+ editor.version = "2.1.1";
82450
82450
  return editor;
82451
82451
  }
82452
82452
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",