Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit b36bc68

Browse files
authored
fix issue with apiSuccessExample parsing (#1366)
Co-authored-by: Emmanuel Saracco <[email protected]> Fix #1365
1 parent e19e4c1 commit b36bc68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Parser.prototype._parseBlockElements = function (indexApiBlocks, detectedElement
202202

203203
if (!elementParser) {
204204
app.log.warn(`parser plugin '${element.name}' not found in block: '${blockIndex}' in file: '${filename}'`);
205-
} else if (element.source.match(/[^\s]\[[^\]]/)) {
205+
} else if (element.source.match(/[^\s:]\[[^\]]/)) {
206206
app.log.warn(`The use of square brackets for object properties is deprecated. Please use dot notation instead: "${element.source}"`);
207207
} else {
208208
app.log.debug('found @' + element.sourceName + ' in block: ' + blockIndex);

0 commit comments

Comments
 (0)