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

fix: Allow # and @ in api param names #102

Merged
merged 1 commit into from
Aug 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading