@wdprlib/parser 2.0.3 → 2.0.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/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9986,7 +9986,7 @@ function resolveIncludes(source, fetcher, options) {
|
|
|
9986
9986
|
};
|
|
9987
9987
|
return expandText(source, cachedFetcher, 0, maxDepth, []);
|
|
9988
9988
|
}
|
|
9989
|
-
var INCLUDE_PATTERN =
|
|
9989
|
+
var INCLUDE_PATTERN = /^\[\[include\s([^\]]*(?:\](?!\])[^\]]*)*)\]\]/gim;
|
|
9990
9990
|
function parseIncludeDirective(inner) {
|
|
9991
9991
|
const normalized = inner.replace(/\n/g, " ");
|
|
9992
9992
|
const parts = normalized.split("|");
|
package/dist/index.js
CHANGED
|
@@ -9931,7 +9931,7 @@ function resolveIncludes(source, fetcher, options) {
|
|
|
9931
9931
|
};
|
|
9932
9932
|
return expandText(source, cachedFetcher, 0, maxDepth, []);
|
|
9933
9933
|
}
|
|
9934
|
-
var INCLUDE_PATTERN =
|
|
9934
|
+
var INCLUDE_PATTERN = /^\[\[include\s([^\]]*(?:\](?!\])[^\]]*)*)\]\]/gim;
|
|
9935
9935
|
function parseIncludeDirective(inner) {
|
|
9936
9936
|
const normalized = inner.replace(/\n/g, " ");
|
|
9937
9937
|
const parts = normalized.split("|");
|