Skip to content

Commit

Permalink
修改脚本正则
Browse files Browse the repository at this point in the history
  • Loading branch information
wupengFEX committed Jan 10, 2018
1 parent 12c8dbc commit e9c1ce0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
},
"link": {
"mandatory": [{
"rel": "/^(canonical)|(standardhtml)$/"
"rel": "/^(canonical)|(miphtml)$/"
}, {
"rel": "/^stylesheet$/",
"href": "/^(https:)?\/\/((mipcache\\.bdstatic\\.com\/static\/mipmain)|(mipcache\\.bdstatic\\.com\/static\/v\\d\/)|(c\\.mipcdn\\.com\/static\/v\\d\/)|(c\\.mipcdn\\.com\/static\/mipmain))/"
}],
"mandatory_parent": "head",
"duplicate": [{
"rel": "/^(standardhtml)$/"
"rel": "/^(miphtml)$/"
}, {
"rel": "/^(canonical)$/"
}, {
Expand All @@ -71,12 +71,12 @@
"href": [{
"value": "/^(http(s)?:)?\/\//",
"match": {
"rel": "/^(canonical)|(standardhtml)$/"
"rel": "/^(canonical)|(miphtml)$/"
}
}, {
"value": "/^(?!\/[^\/])/",
"match": {
"rel": "/^(?!(canonical)|(standardhtml))$/"
"rel": "/^(?!(canonical)|(miphtml))$/"
}
}]

Expand Down Expand Up @@ -369,4 +369,4 @@
}
}
}
}
}

0 comments on commit e9c1ce0

Please sign in to comment.