mirror of
https://github.com/discourse/discourse.git
synced 2025-04-09 07:00:46 +08:00
Fix the Amazon links regex
This commit is contained in:
parent
e77e7f23ca
commit
f14c71b9d4
@ -50,7 +50,7 @@ module Jobs
|
|||||||
def self.max_chunk_size(uri)
|
def self.max_chunk_size(uri)
|
||||||
# Amazon leaves the title until very late. Normally it's a bad idea to make an exception for
|
# Amazon leaves the title until very late. Normally it's a bad idea to make an exception for
|
||||||
# one host but amazon is a big one.
|
# one host but amazon is a big one.
|
||||||
return 80 if uri.host =~ /amazon\.(com|ca|co.uk|es|fr|de|it|com.au|com.br|cn|in|co.jp|com.mx)$/
|
return 80 if uri.host =~ /amazon\.(com|ca|co\.uk|es|fr|de|it|com\.au|com\.br|cn|in|co\.jp|com\.mx)$/
|
||||||
|
|
||||||
# Default is 10k
|
# Default is 10k
|
||||||
10
|
10
|
||||||
|
Loading…
x
Reference in New Issue
Block a user