Skip to content

Commit 75fd67a

Browse files
authored
Merge pull request #320 from lucasrangit/allow-hyphen-in-url
Allow hyphens in GITHUB_URL
2 parents ee08246 + 4e16358 commit 75fd67a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/gist.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ClipboardError < RuntimeError; include Error end
4444
module AuthTokenFile
4545
def self.filename
4646
if ENV.key?(URL_ENV_NAME)
47-
File.expand_path "~/.gist.#{ENV[URL_ENV_NAME].gsub(/:/, '.').gsub(/[^a-z0-9.]/, '')}"
47+
File.expand_path "~/.gist.#{ENV[URL_ENV_NAME].gsub(/:/, '.').gsub(/[^a-z0-9.-]/, '')}"
4848
else
4949
File.expand_path "~/.gist"
5050
end

0 commit comments

Comments
 (0)