@brillout/docpress 0.16.6 → 0.16.7

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.
@@ -164,7 +164,7 @@ function cleanUpCode(code: string, isJsCode: boolean = false) {
164
164
  }
165
165
  function processMagicComments(code: string) {
166
166
  // @detype-replace DummyLayout Layout
167
- const renameCommentRE = /^\/\/\s@detype-replace\s([^ ]+) ([^ ]+)\n/gm
167
+ const renameCommentRE = /^\s*\/\/\s@detype-replace\s([^ ]+) ([^ ]+)\n/gm
168
168
  const matches = Array.from(code.matchAll(renameCommentRE))
169
169
 
170
170
  if (matches.length) {
@@ -138,7 +138,7 @@ function cleanUpCode(code, isJsCode = false) {
138
138
  }
139
139
  function processMagicComments(code) {
140
140
  // @detype-replace DummyLayout Layout
141
- const renameCommentRE = /^\/\/\s@detype-replace\s([^ ]+) ([^ ]+)\n/gm;
141
+ const renameCommentRE = /^\s*\/\/\s@detype-replace\s([^ ]+) ([^ ]+)\n/gm;
142
142
  const matches = Array.from(code.matchAll(renameCommentRE));
143
143
  if (matches.length) {
144
144
  for (let i = matches.length - 1; i >= 0; i--) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.16.6",
3
+ "version": "0.16.7",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@brillout/picocolors": "^1.0.10",