@fileverse-dev/ddoc 3.2.4 → 3.2.5

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/index.es.js +4 -1
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -183835,7 +183835,10 @@ const uKe = { status: "idle" }, cKe = (e) => {
183835
183835
  return;
183836
183836
  }
183837
183837
  let D = p;
183838
- D && !D.startsWith("http://") && !D.startsWith("https://") && (D = "https://" + D), D && !/^(https?:\/\/)?([\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?|\w+@[\w.-]+\.\w+)$/i.test(D) && v(!1);
183838
+ if (D && !D.startsWith("http://") && !D.startsWith("https://") && (D = "https://" + D), D && !/^(https?:\/\/)?([\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?|\w+@[\w.-]+\.\w+)$/i.test(D)) {
183839
+ v(!1), t && t("Invalid URL");
183840
+ return;
183841
+ }
183839
183842
  const { from: C, to: A } = e.state.selection;
183840
183843
  e.state.doc.textBetween(C, A).length > 0 ? e.chain().focus().deleteSelection().insertContent({
183841
183844
  type: "text",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "3.2.4",
5
+ "version": "3.2.5",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {