We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee08246 + 4e16358 commit 75fd67aCopy full SHA for 75fd67a
lib/gist.rb
@@ -44,7 +44,7 @@ class ClipboardError < RuntimeError; include Error end
44
module AuthTokenFile
45
def self.filename
46
if ENV.key?(URL_ENV_NAME)
47
- File.expand_path "~/.gist.#{ENV[URL_ENV_NAME].gsub(/:/, '.').gsub(/[^a-z0-9.]/, '')}"
+ File.expand_path "~/.gist.#{ENV[URL_ENV_NAME].gsub(/:/, '.').gsub(/[^a-z0-9.-]/, '')}"
48
else
49
File.expand_path "~/.gist"
50
end
0 commit comments