Groups
Groups
Sign in
Groups
Groups
Firebase Google Group
Conversations
About
Send feedback
Help
Firestore Security Rules Regex
528 views
Skip to first unread message
Romeo Bahoumda
unread,
Jul 20, 2018, 9:51:48 PM
7/20/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Firebase Google Group
I have trouble modifying my Regex expression to satisfy the rules semantics
I want it to check if the email matches a particular domain
so it looks like this
request.auth.token.email.matches(/^[A-Z0-9._%+-]+@(lehigh)+\\.(edu)$/i)
What should I change?
Matthew Evans
unread,
Aug 11, 2018, 3:40:23 AM
8/11/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Firebase Google Group
Im assuming you just want to allow all email addresses from the
lehigh.edu
domain?
should look like this:
request.auth.token.email.matches('/.*
@lehigh[.]edu/
') == true;
Reply all
Reply to author
Forward
0 new messages