Skip to content

Commit

Permalink
Use tr instead of gsub
Browse files Browse the repository at this point in the history
  • Loading branch information
mfinelli committed Feb 18, 2020
1 parent 5548212 commit 49f2189
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -62,7 +62,7 @@ def csp_policy
# Set these key values to boolean 'true' to include in policy
NO_ARG_DIRECTIVES.each do |d|
if options.key?(d) && options[d].is_a?(TrueClass)
directives << d.to_s.gsub(/_/, '-')
directives << d.to_s.tr('_', '-')
end
end

Expand Down

0 comments on commit 49f2189

Please sign in to comment.