Merge branch 'master' into site_extract_readers

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
This commit is contained in:
Martin Jorn Rogalla 2015-03-06 17:28:45 +01:00
commit b178358cf9
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ module Jekyll
end
def sanitize_filename(name)
name.gsub!(/[^\w\s_-]+/, '')
name.gsub!(/[^\w\s-]+/, '')
name.gsub!(/(^|\b\s)\s+($|\s?\b)/, '\\1\\2')
name.gsub(/\s+/, '_')
end