Fix regex
This commit is contained in:
parent
60a344e7c9
commit
9697235891
@ -41,24 +41,24 @@ $APIS = [
|
|||||||
"load" => "submitcode.php",
|
"load" => "submitcode.php",
|
||||||
"vars" => [
|
"vars" => [
|
||||||
"code" => "string",
|
"code" => "string",
|
||||||
"latitude (optional)" => "/[0-9]{0,3}\.[0-9]{2,10}/",
|
"latitude (optional)" => "/^-?[0-9]{1,2}\.[0-9]*$/",
|
||||||
"longitude (optional)" => "/[0-9]{0,3}\.[0-9]{2,10}/",
|
"longitude (optional)" => "/^-?[0-9]{1,3}\.[0-9]*$/",
|
||||||
"accuracy (optional)" => "numeric"
|
"accuracy (optional)" => "numeric"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"nearbyplayers" => [
|
"nearbyplayers" => [
|
||||||
"load" => "nearbyplayers.php",
|
"load" => "nearbyplayers.php",
|
||||||
"vars" => [
|
"vars" => [
|
||||||
"latitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
|
"latitude" => "/^-?[0-9]{1,2}\.[0-9]*$/",
|
||||||
"longitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
|
"longitude" => "/^-?[0-9]{1,3}\.[0-9]*$/",
|
||||||
"radius (optional)" => "numeric"
|
"radius (optional)" => "numeric"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"nearbyplaces" => [
|
"nearbyplaces" => [
|
||||||
"load" => "nearbyplaces.php",
|
"load" => "nearbyplaces.php",
|
||||||
"vars" => [
|
"vars" => [
|
||||||
"latitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
|
"latitude" => "/^-?[0-9]{1,2}\.[0-9]*$/",
|
||||||
"longitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
|
"longitude" => "/^-?[0-9]{1,3}\.[0-9]*$/",
|
||||||
"radius (optional)" => "numeric"
|
"radius (optional)" => "numeric"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
@ -77,16 +77,16 @@ $APIS = [
|
|||||||
"getchat" => [
|
"getchat" => [
|
||||||
"load" => "getchat.php",
|
"load" => "getchat.php",
|
||||||
"vars" => [
|
"vars" => [
|
||||||
"latitude (optional)" => "/[0-9]{0,3}\.[0-9]{2,10}/",
|
"latitude (optional)" => "/^-?[0-9]{1,2}\.[0-9]*$/",
|
||||||
"longitude (optional)" => "/[0-9]{0,3}\.[0-9]{2,10}/",
|
"longitude (optional)" => "/^-?[0-9]{1,3}\.[0-9]*$/",
|
||||||
"radius (optional)" => "numeric"
|
"radius (optional)" => "numeric"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"sendchat" => [
|
"sendchat" => [
|
||||||
"load" => "sendchat.php",
|
"load" => "sendchat.php",
|
||||||
"vars" => [
|
"vars" => [
|
||||||
"latitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
|
"latitude" => "/^-?[0-9]{1,2}\.[0-9]*$/",
|
||||||
"longitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
|
"longitude" => "/^-?[0-9]{1,3}\.[0-9]*$/",
|
||||||
"message" => "string"
|
"message" => "string"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user