Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #102 from GentileFulvio/master
Browse files Browse the repository at this point in the history
fix: Allow `#` and `@` in api param names
fix #899
  • Loading branch information
NicolasCARPi committed Aug 13, 2020
2 parents 987723d + 7cc84e4 commit 393b16f
Show file tree
Hide file tree
Showing 5 changed files with 299 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/parsers/api_param.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var regExp = {
},
wName: {
b: '(\\[?\\s*', // 5 optional optional-marker
name: '([a-zA-Z0-9\\$\\:\\.\\/\\\\_-]+', // 6
name: '([#@a-zA-Z0-9\\$\\:\\.\\/\\\\_-]+', // 6
withArray: '(?:\\[[a-zA-Z0-9\\.\\/\\\\_-]*\\])?)', // https://github.com/apidoc/apidoc-core/pull/4
oDefaultValue: { // optional defaultValue
b: '(?:\\s*=\\s*(?:', // starting with '=', optional surrounding spaces
Expand Down
2 changes: 1 addition & 1 deletion lib/parsers/api_private.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function parse(content) {
function parse() {
return 'private';
}

Expand Down
209 changes: 209 additions & 0 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"devDependencies": {
"apidoc-example": "^0.2.1",
"deep-equal": "^2.0.3",
"jshint": "^2.10.3",
"markdown-it": "^10.0.0",
"mocha": "^6.2.3",
Expand Down

0 comments on commit 393b16f

Please sign in to comment.