@astryx-vue/richtext 0.7.23 → 0.7.25
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 +7 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -487,8 +487,13 @@ const HAS_SCHEME = /^[a-z][a-z0-9+.-]*:/i;
|
|
|
487
487
|
* Intentionally permissive on path/query so real-world URLs linkify.
|
|
488
488
|
*/
|
|
489
489
|
const URL_MATCHER = /((https?:\/\/(www\.)?)|(www\.))[-\w@:%.+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-\w()@:%+.~#?&/=]*)/;
|
|
490
|
-
/**
|
|
491
|
-
|
|
490
|
+
/**
|
|
491
|
+
* Matches a bare email address for AutoLink (rendered as a `mailto:` link).
|
|
492
|
+
* An unquoted local part starts only at the text start, after whitespace, or
|
|
493
|
+
* after one of `<>()[]\,;:@"`. A quoted local part ends at the next quote or
|
|
494
|
+
* line break. Each run is read once, so matching time stays linear.
|
|
495
|
+
*/
|
|
496
|
+
const EMAIL_MATCHER = /((?<![^<>()[\]\\,;:\s@"])[^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*|("[^"\r\n]+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\])|(([a-z\-0-9]+\.)+[a-z]{2,}))/i;
|
|
492
497
|
/** Prepend a default `https://` scheme to a bare host so it parses as absolute. */
|
|
493
498
|
function withDefaultScheme(url) {
|
|
494
499
|
return HAS_SCHEME.test(url) ? url : `https://${url}`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryx-vue/richtext",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.25",
|
|
5
5
|
"description": "Astryx rich text for Vue — Lexical nodes and lossless Markdown import/export. Not affiliated with Meta.",
|
|
6
6
|
"author": "ShenQingchuan",
|
|
7
7
|
"license": "MIT",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@lexical/utils": "0.52.0",
|
|
67
67
|
"lexical": "0.52.0",
|
|
68
68
|
"vue": "^3.5.0",
|
|
69
|
-
"@astryx-vue/core": "^0.7.
|
|
69
|
+
"@astryx-vue/core": "^0.7.25"
|
|
70
70
|
},
|
|
71
71
|
"peerDependenciesMeta": {
|
|
72
72
|
"@lexical/code": {
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"unplugin-vue": "8.0.0",
|
|
131
131
|
"vue": "3.5.43",
|
|
132
132
|
"vue-tsc": "3.3.12",
|
|
133
|
-
"@astryx-vue/core": "^0.7.
|
|
133
|
+
"@astryx-vue/core": "^0.7.25"
|
|
134
134
|
},
|
|
135
135
|
"publishConfig": {
|
|
136
136
|
"access": "public"
|