From 6db132b1f5395675bbb5f73a1ea3677a837545cf Mon Sep 17 00:00:00 2001 From: wupengFEX Date: Mon, 8 Jan 2018 12:56:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=20link=20=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rules.json | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/rules.json b/rules.json index aa7d454..314cae3 100644 --- a/rules.json +++ b/rules.json @@ -53,31 +53,25 @@ }, "link": { "mandatory": [{ - "rel": "/^(miphtml)|(canonical)|(standardhtml)$/" + "rel": "/^(canonical)|(standardhtml)$/" }, { "rel": "/^stylesheet$/", - "href": "/^(https:)?\/\/(mipcache.bdstatic.com\/static\/mipmain)|(m.baidu.com\/static\/ala\/sf\/static\/)|((https:)?\/\/mipcache.bdstatic.com\/static\/v\\d\/)|((https:)?\/\/c.mipcdn.com\/static\/v\\d\/)|((https:)?\/\/c.mipcdn.com\/static\/mipmain)/" + "href": "/^(https:)?\/\/((mipcache\\.bdstatic\\.com\/static\/mipmain-v\\d\\.\\d\\.\\d\\.css)|(c\\.mipcdn\\.com\/static\/mipmain-v\\d\\.\\d\\.\\d\\.css)|(mipcache\\.bdstatic\\.com\/static\/v\\d\/mip\\.css)|(c\\.mipcdn\\.com\/static\/v\\d\/mip\\.css))$/" }], - "mandatory_parent": "head", "duplicate": [{ - "rel": "/^(miphtml)|(standardhtml)$/" - }, { - "rel": "/^(miphtml)|(canonical)$/" - }, { - "rel": "/^stylesheet$/", - "href": "/^(https:)?\/\/(mipcache.bdstatic.com\/static\/mipmain)|(m.baidu.com\/static\/ala\/sf\/static\/)|(c.mipcdn.com\/static\/mipmain)/" + "rel": "/^(canonical)|(standardhtml)$/" }], "attrs": { "href": [{ "value": "/^(http(s)?:)?\/\//", "match": { - "rel": "/^(miphtml)|(canonical)|(standardhtml)$/" + "rel": "/^(canonical)|(standardhtml)$/" } }, { "value": "/^(?!\/[^\/])/", "match": { - "rel": "/^(?!(miphtml)|(canonical)|(standardhtml))$/" + "rel": "/^(?!(canonical)|(standardhtml))$/" } }]