Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 1d083a1

Browse files
committed
Update protocol relative regex
1 parent 1132b3d commit 1d083a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/helpers/requirejs_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def requirejs_include_tag(name = nil, &block)
4949
if run_config.has_key? 'paths'
5050
# Add paths for assets specified by full URL (on a CDN)
5151
run_config['paths'].each do |k, v|
52-
paths[k] = v if v.is_a?(Array) || v =~ /^(https?:|\/\/)/
52+
paths[k] = v if v.is_a?(Array) || v =~ /^(https?:)?\/\//
5353

5454
end
5555
end

0 commit comments

Comments
 (0)