Skip to content

Commit a731938

Browse files
authored
fix: support repository with dot or hyphen
1 parent 329860f commit a731938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generateIgnoreFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import highlightComments from './utils/highlightComments.js'
1212
import joinLinesWithEOF from './utils/joinLinesWithEOF.js'
1313
import { dynamicComposeP, promiseMap } from './utils/ramdaHelper.js'
1414

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

0 commit comments

Comments
 (0)