Allow numbers in the title
This commit is contained in:
parent
46f7199b92
commit
c1e42fc3ce
2
ext/post
2
ext/post
|
@ -19,7 +19,7 @@ if ARGV.size == 0
|
|||
end
|
||||
|
||||
filename = Time.now.strftime("%Y-%m-%d-") + ARGV.map { |arg|
|
||||
arg.downcase.gsub(/[^a-z]/, '-')
|
||||
arg.downcase.gsub(/[^a-z0-9]/, '-')
|
||||
}.join('-').gsub(/--+/, '').gsub(/-$/, '')
|
||||
title = ARGV.join(' ')
|
||||
file = File.join(OUTPUT_DIR, "#{filename}#{EXTENSION}")
|
||||
|
|
Loading…
Reference in a new issue