ios - iOS 13 apple-app-site-association 通配符用于包含/排除而没有部分路径
问题描述
使用新的 iOS 13 apple-app-site-association,有没有办法包含所有 url,但排除特定的部分路径?
"components": [
{
"/": "/*",
"comment": "Matches any URL whose path starts with /"
},
{
"/" : "/e/*",
"exclude": true,
"comment": "Exclude matches any URL whose path starts with /e/"
},
{
"/": "/user/*",
"exclude": true,
"comment": "Exclude matches any URL whose path starts with /user/"
}
]
我们不想指定我们的应用程序可以处理或包含的所有可能路径。
但我们确实想排除/user/*
和/e/*
尽管有指令/user/*
,我们的上述设置仍然允许。我觉得太包容了。/e/*
"exclude" : true
"/": "/*"
我们现在是否被迫从根目录指定所有可能的路径以排除特定路径?
以前的格式更容易匹配"paths": ["NOT /e/*", "NOT /user/*", "*","/"]
我需要先声明排除命令吗?
解决方案
推荐阅读
- python - 删除熊猫字符串列中的重复字符?
- c# - C# Regex DataAnnotations 未检测到结束行
- vb.net - 如何将 DataGridview 数据导入 Excel
- apache-flink - 如果一项任务失败,是否会重新启动整个作业
- jquery - 你如何在jquery中为一组div增加一个类
- c# - 破坏随机字符串
- java - 如何在 Android 上的 /0 处创建目录?
- awk - 如何删除文件夹中多个文件的“0”行?
- android - Android Chip_如何以编程方式使芯片背景颜色透明?
- r - 具有 Kolmogorov-Smirnov 双样本、Cramer-von Mises 和 Kuiper 检验的 ECDF