Fix regex

This commit is contained in:
Skylar Ittner 2020-04-01 13:02:57 -06:00
parent 60a344e7c9
commit 9697235891

View File

@ -41,24 +41,24 @@ $APIS = [
"load" => "submitcode.php",
"vars" => [
"code" => "string",
"latitude (optional)" => "/[0-9]{0,3}\.[0-9]{2,10}/",
"longitude (optional)" => "/[0-9]{0,3}\.[0-9]{2,10}/",
"latitude (optional)" => "/^-?[0-9]{1,2}\.[0-9]*$/",
"longitude (optional)" => "/^-?[0-9]{1,3}\.[0-9]*$/",
"accuracy (optional)" => "numeric"
]
],
"nearbyplayers" => [
"load" => "nearbyplayers.php",
"vars" => [
"latitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
"longitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
"latitude" => "/^-?[0-9]{1,2}\.[0-9]*$/",
"longitude" => "/^-?[0-9]{1,3}\.[0-9]*$/",
"radius (optional)" => "numeric"
]
],
"nearbyplaces" => [
"load" => "nearbyplaces.php",
"vars" => [
"latitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
"longitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
"latitude" => "/^-?[0-9]{1,2}\.[0-9]*$/",
"longitude" => "/^-?[0-9]{1,3}\.[0-9]*$/",
"radius (optional)" => "numeric"
]
],
@ -77,16 +77,16 @@ $APIS = [
"getchat" => [
"load" => "getchat.php",
"vars" => [
"latitude (optional)" => "/[0-9]{0,3}\.[0-9]{2,10}/",
"longitude (optional)" => "/[0-9]{0,3}\.[0-9]{2,10}/",
"latitude (optional)" => "/^-?[0-9]{1,2}\.[0-9]*$/",
"longitude (optional)" => "/^-?[0-9]{1,3}\.[0-9]*$/",
"radius (optional)" => "numeric"
]
],
"sendchat" => [
"load" => "sendchat.php",
"vars" => [
"latitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
"longitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
"latitude" => "/^-?[0-9]{1,2}\.[0-9]*$/",
"longitude" => "/^-?[0-9]{1,3}\.[0-9]*$/",
"message" => "string"
]
],