Merge branch 'master' into site_extract_readers
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
This commit is contained in:
commit
b178358cf9
|
@ -61,7 +61,7 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
def sanitize_filename(name)
|
def sanitize_filename(name)
|
||||||
name.gsub!(/[^\w\s_-]+/, '')
|
name.gsub!(/[^\w\s-]+/, '')
|
||||||
name.gsub!(/(^|\b\s)\s+($|\s?\b)/, '\\1\\2')
|
name.gsub!(/(^|\b\s)\s+($|\s?\b)/, '\\1\\2')
|
||||||
name.gsub(/\s+/, '_')
|
name.gsub(/\s+/, '_')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue