Skip to content

Commit

Permalink
Fixed rules regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mgibas committed Dec 24, 2017
1 parent 3a64fb0 commit 11e38ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database.rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
".read": "auth != null",
".write": "false",
"$org": {
".validate": "$org.matches(/^[a-zA-Z0-9-]{3,21}$/g)"
".validate": "$org.matches(/^[a-zA-Z0-9-]{3,21}$/i)"
}
},
"orgs":{
"$org": {
".validate": "$org.matches(/^[a-zA-Z0-9-]{3,21}$/g)",
".validate": "$org.matches(/^[a-zA-Z0-9-]{3,21}$/i)",
"players": {
".read": "auth != null && root.child('users').child(auth.uid).child('orgs').hasChild($org)",
".indexOn": "rated",
Expand Down

0 comments on commit 11e38ad

Please sign in to comment.