@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 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 = /\[\[include\s([^\]]*(?:\](?!\])[^\]]*)*)\]\]/gi;
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 = /\[\[include\s([^\]]*(?:\](?!\])[^\]]*)*)\]\]/gi;
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("|");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdprlib/parser",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Parser for Wikidot markup",
5
5
  "keywords": [
6
6
  "ast",