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

Commit 393b16f

Browse files
authored
Merge pull request #102 from GentileFulvio/master
fix: Allow `#` and `@` in api param names fix #899
2 parents 987723d + 7cc84e4 commit 393b16f

File tree

5 files changed

+299
-2
lines changed

5 files changed

+299
-2
lines changed

lib/parsers/api_param.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var regExp = {
3636
},
3737
wName: {
3838
b: '(\\[?\\s*', // 5 optional optional-marker
39-
name: '([a-zA-Z0-9\\$\\:\\.\\/\\\\_-]+', // 6
39+
name: '([#@a-zA-Z0-9\\$\\:\\.\\/\\\\_-]+', // 6
4040
withArray: '(?:\\[[a-zA-Z0-9\\.\\/\\\\_-]*\\])?)', // https://github.com/apidoc/apidoc-core/pull/4
4141
oDefaultValue: { // optional defaultValue
4242
b: '(?:\\s*=\\s*(?:', // starting with '=', optional surrounding spaces

lib/parsers/api_private.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function parse(content) {
1+
function parse() {
22
return 'private';
33
}
44

package-lock.json

Lines changed: 209 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
},
3939
"devDependencies": {
4040
"apidoc-example": "^0.2.1",
41+
"deep-equal": "^2.0.3",
4142
"jshint": "^2.10.3",
4243
"markdown-it": "^10.0.0",
4344
"mocha": "^6.2.3",

0 commit comments

Comments
 (0)