Skip to content

Commit

Permalink
chore(deps-dev): Bump @readme/eslint-config from 1.12.0 to 1.13.0 (#61)
Browse files Browse the repository at this point in the history
* chore(deps-dev): Bump @readme/eslint-config from 1.12.0 to 1.13.0

Bumps [@readme/eslint-config](https://github.com/readmeio/eslint-config) from 1.12.0 to 1.13.0.
- [Release notes](https://github.com/readmeio/eslint-config/releases)
- [Changelog](https://github.com/readmeio/eslint-config/blob/master/CHANGELOG.md)
- [Commits](readmeio/standards@1.12.0...1.13.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* style: silencing some known unsafe regex warnings

Co-authored-by: Jon Ursenbach <erunion@users.noreply.github.com>
  • Loading branch information
dependabot-preview[bot] and erunion authored Feb 24, 2020
1 parent 846c8b8 commit e147e2f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
44 changes: 22 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/extractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ class Extractor {
}
}

// eslint-disable-next-line unicorn/no-unsafe-regex
Extractor.ROUTE_REGEX = /@(?:oas|api)\s+\[(\w+)\]\s+(.*?)(?:\s+(.*))?$/m;
Extractor.SCHEMA_REGEX = /@schema\s+(.*)$/m;

Expand Down
1 change: 1 addition & 0 deletions src/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ class Loader {
}

static expandParam(param = '', swaggerVersion) {
// eslint-disable-next-line unicorn/no-unsafe-regex
const parsed = param.match(/(?:\((.*)\))?\s*([\w._-]*)(?:=([^{*]*))?([*])?\s*{(.*?)(?::(.*))?}\s*(.*)?/);

if (!parsed || !parsed[1] || !parsed[5]) return false;
Expand Down

0 comments on commit e147e2f

Please sign in to comment.