You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// @TODO: is this even logical to perform this check?
568
+
if (isset($data[$variable->env_variable]) && empty($data[$variable->env_variable])) {
569
+
if ($variable->required === 1) {
570
+
thrownewDisplayException('A required service option variable field (' . $variable->env_variable . ') was included in this request but was left blank.');
571
+
}
572
+
}
573
+
574
+
// Check aganist Regex Pattern
575
+
if (!is_null($variable->regex) && !preg_match($variable->regex, $data[$variable->env_variable])) {
576
+
thrownewDisplayException('Failed to validate service option variable field (' . $variable->env_variable . ') aganist regex (' . $variable->regex . ').');
<pclass="text-muted"><small>The following data replacers are avaliable for the startup command: <code>@{{SERVER_MEMORY}}</code>, <code>@{{SERVER_IP}}</code>, and <code>@{{SERVER_PORT}}</code>. They will be replaced with the allocated memory, server ip, and server port respectively.</small></p>
0 commit comments