Skip to content

Commit

Permalink
feat: support for multiline comment for languages that use default regex
Browse files Browse the repository at this point in the history
  • Loading branch information
idoo committed Aug 2, 2019
1 parent d6044b0 commit ffc37b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/code-parse/language/default/codecrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const setupGetCommentsFromCode = regex => fileCode => {
return [];
}

const result = compact(regex.exec(fileCode)) || [];
const result = fileCode.match(regex) || [];

return result.reduce((comments, value) => {
value = value.trim()
Expand Down

0 comments on commit ffc37b9

Please sign in to comment.