Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 0e8335a

Browse files
authored
Update regex in trivialize-cdn-rules (#19657)
1 parent a3e09c5 commit 0e8335a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/trivialize-cdn-rules/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ const log = (level, filename, message) => {
3131

3232
const supportedCDNsRegexs = [
3333
{ // Cloudfront.net
34-
fromRe: /^\^http(?:s\?)?:\/\/((([\\a-z0-9äö_-]+)\.)*([\\a-z0-9äö-]+))\/$/,
34+
fromRe: /^\^http(?:s\?)?:\/\/((([\\a-z0-9_-]+)\.)*([\\a-z0-9-]+))\/$/,
3535
toRe: /^https:\/\/\w+\.cloudfront\.net\/$/
3636
},
3737
{ // 2o7.net
38-
fromRe: /^\^http(?:s\?)?:\/\/((([\\a-z0-9äö_-]+)\.)*([\\a-z0-9äö-]+))\/$/,
38+
fromRe: /^\^http(?:s\?)?:\/\/((([\\a-z0-9_-]+)\.)*([\\a-z0-9-]+))\/$/,
3939
toRe: /^https:\/\/[\w-]+\.1[12]2\.2o7\.net\/$/
4040
},
4141
{ // amazonaws.com
42-
fromRe: /^\^http(?:s\?)?:\/\/((([\\a-z0-9äö_-]+)\.)*([\\a-z0-9äö-]+))\/$/,
42+
fromRe: /^\^http(?:s\?)?:\/\/((([\\a-z0-9_-]+)\.)*([\\a-z0-9-]+))\/$/,
4343
toRe: /^https:\/\/s3\.amazonaws\.com\//
4444
}
4545
]

0 commit comments

Comments
 (0)