Skip to content

Commit

Permalink
fix: broken regexp if name is 'B'
Browse files Browse the repository at this point in the history
  • Loading branch information
h13i32maru committed Mar 13, 2016
1 parent c330650 commit 265f506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Publisher/Builder/DocBuilder.js
Expand Up @@ -85,7 +85,7 @@ export default class DocBuilder {
}
if (docs.length) return docs;

let regexp = new RegExp(`[~]\\${name}$`); // if name is `*`, need to escape.
let regexp = new RegExp(`[~]${name.replace('*', '\\*')}$`); // if name is `*`, need to escape.
if (kind) {
docs = this._orderedFind(null, {longname: {regex: regexp}, kind: kind});
} else {
Expand Down

0 comments on commit 265f506

Please sign in to comment.