Skip to content

Commit

Permalink
move comment to related line
Browse files Browse the repository at this point in the history
  • Loading branch information
markets committed May 5, 2024
1 parent 5c91d35 commit 9bb7fc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/middleman-blog/uri_templates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,13 @@ def safe_parameterize(str, sep = '-')

# Remove leading/trailing separator.
parameterized_string.gsub!(/^#{re_sep}|#{re_sep}$/, '')

# Replace all _ with -
parameterized_string.tr!('_', '-')

# Delete all ?
parameterized_string.delete!('?')

# Replace all ?
parameterized_string
end

Expand Down

0 comments on commit 9bb7fc7

Please sign in to comment.