We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f5686e commit 74f8e77Copy full SHA for 74f8e77
lib/secure_headers/task_helper.rb
@@ -29,8 +29,8 @@ def generate_inline_style_hashes(filename)
29
30
def dynamic_content?(filename, inline_script)
31
!!(
32
- (is_mustache?(filename) && inline_script =~ /\{\{.*\}\}/) ||
33
- (is_erb?(filename) && inline_script =~ /<%.*%>/)
+ (is_mustache?(filename) && inline_script =~ /\{\{.*?\}\}/) ||
+ (is_erb?(filename) && inline_script =~ /<%.*?%>/)
34
)
35
end
36
0 commit comments