问题描述
使用新的 iOS 13 apple-app-site-association,有没有办法包含所有网址,但排除特定的部分路径?
"components": [
{
"/": "/*","comment": "Matches any URL whose path starts with /"
},{
"/" : "/e/*","exclude": true,"comment": "Exclude matches any URL whose path starts with /e/"
},{
"/": "/user/*","comment": "Exclude matches any URL whose path starts with /user/"
}
]
我们不想指定我们的应用程序可以处理或包含的每个可能的路径。
但我们确实想排除 /user/*
和 /e/*
尽管有 /user/*
指令,我们的上述设置仍然允许 /e/*
和 "exclude" : true
。我认为 "/": "/*"
的包容性太强了。
我们现在是否被迫指定从根目录开始的所有可能路径以排除特定路径?
以前的格式更容易匹配"paths": ["NOT /e/*","NOT /user/*","*","/"]
我需要先说明排除命令吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)