Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Apr 9, 2017
1 parent 36dff90 commit 1447d3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/lib/person.js
Expand Up @@ -31,7 +31,7 @@ class Person extends Fellow {
*/
/* eslint no-magic-numbers: 0 */
set name (value /* :string */) {
const match = (/^((?:[0-9]+[\-\+]?)+)?(.+)$/).exec(value)
const match = (/^((?:[0-9]+[-+]?)+)?(.+)$/).exec(value)
if ( match ) {
const years = String(match[1] || '').trim() || null
const name = match[2].trim() || null
Expand Down
4 changes: 2 additions & 2 deletions source/lib/projectz-util.js
Expand Up @@ -7,7 +7,7 @@
function getGithubSlug (data /* :{homepage?:string, repository?:string|{url?:string}} */ ) {
let match = null
if ( typeof data.repository === 'string' ) {
match = data.repository.match(/^(?:github:)?([^\/:]+\/[^\/:]+)$/)
match = data.repository.match(/^(?:github:)?([^/:]+\/[^/:]+)$/)
}
else {
let url = null
Expand All @@ -20,7 +20,7 @@ function getGithubSlug (data /* :{homepage?:string, repository?:string|{url?:str
else {
return null
}
match = url.match(/github\.com\/([^\/:]+\/[^\/:]+?)(?:\.git|\/)?$/)
match = url.match(/github\.com\/([^/:]+\/[^/:]+?)(?:\.git|\/)?$/)
}
return (match && match[1]) || null
}
Expand Down

0 comments on commit 1447d3a

Please sign in to comment.