Skip to content

Commit

Permalink
CS.
Browse files Browse the repository at this point in the history
  • Loading branch information
satazor committed Mar 26, 2017
1 parent a9a23a1 commit 3052fb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/analyze/collect/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ function extractPublisher(packageJson, maintainers) {
* @return {string} The scope, or "unscoped" if no scope is found.
*/
function extractScope(packageJson) {
const match = packageJson.name.match(/^@([^\/]+)\/.+$/);
const match = packageJson.name.match(/^@([^/]+)\/.+$/);

return match ? match[1] : 'unscoped';
}

Expand Down
2 changes: 1 addition & 1 deletion lib/scoring/score.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function buildScore(analysis, aggregation) {
return deepCompact({
package: pick(collected.metadata, [
'name', 'version', 'description', 'keywords', 'date', 'links',
'author', 'publisher', 'maintainers', 'scope'
'author', 'publisher', 'maintainers', 'scope',
]),
flags: analysis.error && collected.metadata.version === '0.0.0' ? null : {
deprecated: collected.metadata.deprecated,
Expand Down

0 comments on commit 3052fb5

Please sign in to comment.