Skip to content

Commit 2961952

Browse files
committed
allow ~ in platform content #2
1 parent 4b22749 commit 2961952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/platform_content.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def initialize(platform, path, build_list = nil)
1111

1212
def build_list
1313
return @build_list if !!@build_list
14-
return nil if @path !~ /\/(release|updates)+\/[\w\-\.\+]+$/
14+
return nil if @path !~ /\/(release|updates)+\/[\w\-\.\+\~]+$/
1515
return nil unless repository_name = @path.match(/\/[\w]+\/(release|updates)\//)
1616
repository_name = repository_name[0].gsub(/\/(release|updates)\/$/, '').gsub('/', '')
1717

0 commit comments

Comments
 (0)