Firestore规则 - 匹配E.164电话模式

问题描述 投票:1回答:1

我正在尝试强制用户传递E.164电话号码。但由于某种原因,我在firestore中遇到关于我的正则表达式的语法错误:

enter image description here

enter image description here

regex firebase google-cloud-firestore firebase-security-rules re2
1个回答
2
投票

我相信你必须双重逃脱一切^\\+?[1-9]\\d{1,14}$

© www.soinside.com 2019 - 2024. All rights reserved.