Skip to content

Commit

Permalink
changed the way to check if there are matches
Browse files Browse the repository at this point in the history
  • Loading branch information
UtechtDustin committed Jul 10, 2020
1 parent 35534ec commit 5f63260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/check-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class API {
const tmpDetails = details[i + 1].trim()
if (name === 'Example' && exampleFilesFound) {
const matches = exampleRegex.exec(tmpDetails)
if (matches === null) {
if (!matches) {
errors.push(chalk.red(`[${key}] missing or wrong formatted example`, `"${tmpDetails}"`))
continue
}
Expand Down

0 comments on commit 5f63260

Please sign in to comment.