@blocklet/editor 2.1.4 → 2.1.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.
@@ -8,7 +8,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
8
8
  */
9
9
  import { AutoLinkPlugin } from '@lexical/react/LexicalAutoLinkPlugin';
10
10
  // `\u00A0-\uD7FF\uE000-\uFFFD`: 支持常用字符集 (#1423)
11
- const URL_MATCHER = /((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,9}\b([-a-zA-Z0-9\u00A0-\uD7FF\uE000-\uFFFD()@:%_+.~#?&//=]*)/;
11
+ const URL_MATCHER = /((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9\u00A0-\uD7FF\uE000-\uFFFD()@:%_+.~#?&//=]*)/;
12
12
  const EMAIL_MATCHER = /(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/;
13
13
  const MATCHERS = [
14
14
  (text) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/editor",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "main": "lib/index.js",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -64,7 +64,7 @@
64
64
  "react-popper": "^2.3.0",
65
65
  "ufo": "^1.5.4",
66
66
  "url-join": "^4.0.1",
67
- "@blocklet/pdf": "^2.1.4"
67
+ "@blocklet/pdf": "^2.1.5"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@babel/core": "^7.25.2",