@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.
- package/dist/index.es.js +4 -1
- 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)
|
|
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",
|