@adobe/helix-html-pipeline 6.29.2 → 6.29.4
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
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [6.29.4](https://github.com/adobe/helix-html-pipeline/compare/v6.29.3...v6.29.4) (2026-05-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* catch invalid regex from globToRegExp ([#1093](https://github.com/adobe/helix-html-pipeline/issues/1093)) ([014721c](https://github.com/adobe/helix-html-pipeline/commit/014721c3986183493244ffd811367db03c8cea7a))
|
|
7
|
+
|
|
8
|
+
## [6.29.3](https://github.com/adobe/helix-html-pipeline/compare/v6.29.2...v6.29.3) (2026-05-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* preserve whitespace in section metadata text values ([#1091](https://github.com/adobe/helix-html-pipeline/issues/1091)) ([644e966](https://github.com/adobe/helix-html-pipeline/commit/644e9663bf1c1265d542ddb3381416a40adaa172))
|
|
14
|
+
|
|
1
15
|
## [6.29.2](https://github.com/adobe/helix-html-pipeline/compare/v6.29.1...v6.29.2) (2026-05-21)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-html-pipeline",
|
|
3
|
-
"version": "6.29.
|
|
3
|
+
"version": "6.29.4",
|
|
4
4
|
"description": "Helix HTML Pipeline",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"unist-util-visit-parents": "6.0.2"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@adobe/eslint-config-helix": "3.0.
|
|
74
|
-
"@eslint/config-helpers": "0.
|
|
73
|
+
"@adobe/eslint-config-helix": "3.0.28",
|
|
74
|
+
"@eslint/config-helpers": "0.6.0",
|
|
75
75
|
"@markedjs/html-differ": "5.0.5",
|
|
76
76
|
"@semantic-release/changelog": "6.0.3",
|
|
77
77
|
"@semantic-release/git": "10.0.1",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"eslint-import-resolver-exports": "1.0.0-beta.5",
|
|
82
82
|
"eslint-plugin-header": "3.1.1",
|
|
83
83
|
"eslint-plugin-import": "2.32.0",
|
|
84
|
-
"esmock": "2.7.
|
|
84
|
+
"esmock": "2.7.5",
|
|
85
85
|
"husky": "9.1.7",
|
|
86
86
|
"js-yaml": "4.1.1",
|
|
87
87
|
"jsdom": "29.1.1",
|
|
@@ -31,7 +31,7 @@ function isSectionMetadataEnabled(config) {
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Extracts a value from a HAST node by collecting image srcs, link hrefs,
|
|
34
|
-
* and text tokens (split by comma
|
|
34
|
+
* and text tokens (split by comma only, preserving internal whitespace).
|
|
35
35
|
* @param {PipelineState} state
|
|
36
36
|
* @param {object} $value the HAST value node
|
|
37
37
|
* @returns {string} the extracted value
|
|
@@ -50,7 +50,7 @@ function getValueFromNode(state, $value) {
|
|
|
50
50
|
return SKIP;
|
|
51
51
|
}
|
|
52
52
|
if (node.type === 'text') {
|
|
53
|
-
items.push(...node.value.
|
|
53
|
+
items.push(...node.value.split(',').map((s) => s.trim()).filter(Boolean));
|
|
54
54
|
}
|
|
55
55
|
return CONTINUE;
|
|
56
56
|
});
|
package/src/utils/modifiers.js
CHANGED
|
@@ -28,7 +28,12 @@ export function globToRegExp(glob) {
|
|
|
28
28
|
.replaceAll('**', '|')
|
|
29
29
|
.replaceAll('*', '[0-9a-z-.]*')
|
|
30
30
|
.replaceAll('|', '.*');
|
|
31
|
-
|
|
31
|
+
try {
|
|
32
|
+
return new RegExp(`^${reString}$`);
|
|
33
|
+
} catch {
|
|
34
|
+
// glob compiled to an invalid regex
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
32
37
|
}
|
|
33
38
|
|
|
34
39
|
/**
|