@atlaskit/editor-core 187.37.0 → 187.37.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/CHANGELOG.md +6 -0
- package/dist/cjs/plugins/paste/util/index.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/paste/util/index.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/paste/util/index.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 187.37.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9c066a01776`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c066a01776) - ED-19445: Copied HTML is being reformatted when pasted into the editor
|
|
8
|
+
|
|
3
9
|
## 187.37.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -78,8 +78,8 @@ function getPasteSource(event) {
|
|
|
78
78
|
// @see https://product-fabric.atlassian.net/browse/ED-3159
|
|
79
79
|
// @see https://github.com/markdown-it/markdown-it/issues/38
|
|
80
80
|
function escapeLinks(text) {
|
|
81
|
-
return text.replace(/(\[([^\]]+)\]\()?((https?|ftp|jamfselfservice):\/\/[^\s]+)/g, function (str) {
|
|
82
|
-
return str.match(/^(https?|ftp|jamfselfservice):\/\/[^\s]+$/) ? "<".concat(str, ">") : str;
|
|
81
|
+
return text.replace(/(\[([^\]]+)\]\()?((https?|ftp|jamfselfservice):\/\/[^\s"'>]+)/g, function (str) {
|
|
82
|
+
return str.match(/^(https?|ftp|jamfselfservice):\/\/[^\s"'>]+$/) ? "<".concat(str, ">") : str;
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
function hasOnlyNodesOfType() {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = "@atlaskit/editor-core";
|
|
8
8
|
exports.name = name;
|
|
9
|
-
var version = "187.37.
|
|
9
|
+
var version = "187.37.1";
|
|
10
10
|
exports.version = version;
|
|
11
11
|
var nextMajorVersion = function nextMajorVersion() {
|
|
12
12
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
@@ -56,8 +56,8 @@ export function getPasteSource(event) {
|
|
|
56
56
|
// @see https://product-fabric.atlassian.net/browse/ED-3159
|
|
57
57
|
// @see https://github.com/markdown-it/markdown-it/issues/38
|
|
58
58
|
export function escapeLinks(text) {
|
|
59
|
-
return text.replace(/(\[([^\]]+)\]\()?((https?|ftp|jamfselfservice):\/\/[^\s]+)/g, str => {
|
|
60
|
-
return str.match(/^(https?|ftp|jamfselfservice):\/\/[^\s]+$/) ? `<${str}>` : str;
|
|
59
|
+
return text.replace(/(\[([^\]]+)\]\()?((https?|ftp|jamfselfservice):\/\/[^\s"'>]+)/g, str => {
|
|
60
|
+
return str.match(/^(https?|ftp|jamfselfservice):\/\/[^\s"'>]+$/) ? `<${str}>` : str;
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
export function hasOnlyNodesOfType(...nodeTypes) {
|
|
@@ -57,8 +57,8 @@ export function getPasteSource(event) {
|
|
|
57
57
|
// @see https://product-fabric.atlassian.net/browse/ED-3159
|
|
58
58
|
// @see https://github.com/markdown-it/markdown-it/issues/38
|
|
59
59
|
export function escapeLinks(text) {
|
|
60
|
-
return text.replace(/(\[([^\]]+)\]\()?((https?|ftp|jamfselfservice):\/\/[^\s]+)/g, function (str) {
|
|
61
|
-
return str.match(/^(https?|ftp|jamfselfservice):\/\/[^\s]+$/) ? "<".concat(str, ">") : str;
|
|
60
|
+
return text.replace(/(\[([^\]]+)\]\()?((https?|ftp|jamfselfservice):\/\/[^\s"'>]+)/g, function (str) {
|
|
61
|
+
return str.match(/^(https?|ftp|jamfselfservice):\/\/[^\s"'>]+$/) ? "<".concat(str, ">") : str;
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
export function hasOnlyNodesOfType() {
|