Skip to content

Commit

Permalink
Merge pull request #676 from risu729/fix/repository-name-regex
Browse files Browse the repository at this point in the history
fix: support repository with dot or hyphen
  • Loading branch information
foray1010 committed May 2, 2023
2 parents ab2e672 + a731938 commit fab7b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generateIgnoreFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import highlightComments from './utils/highlightComments.js'
import joinLinesWithEOF from './utils/joinLinesWithEOF.js'
import { dynamicComposeP, promiseMap } from './utils/ramdaHelper.js'

const isGithubSource = R.test(/^(\w+\/\w+)$/i)
const isGithubSource = R.test(/^([\w.-]+\/[\w.-]+)$/i)
const prependAlert = R.concat([highlightComments(COMMENT_HEADER_ALERT), ''])
const sourceIs = (...args) => R.compose(...args, R.prop('source'))

Expand Down

0 comments on commit fab7b37

Please sign in to comment.