Skip to content
This repository was archived by the owner on Mar 30, 2024. It is now read-only.

Commit 373b2dc

Browse files
committed
PHP-8 Im/Export
1 parent a54eb90 commit 373b2dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imexport/api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
function createAPIReadline() : APIClient {
77
$check = array(
8-
'URI' => fn(string $u) => @filter_var($u, FILTER_VALIDATE_URL, FILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_SCHEME_REQUIRED),
8+
'URI' => fn(string $u) => @filter_var($u, FILTER_VALIDATE_URL),
99
'Group/ Username' => fn(string $g) => preg_match('/^[A-Za-z0-9]+$/', $g) === 1,
1010
'Device' => fn(string $n) => preg_match( '/^[A-Za-z0-9\-]+$/', $n) === 1,
1111
'Device Token' => fn(string $t) => preg_match('/^[A-Za-z0-9]+$/', $t) === 1

0 commit comments

Comments
 (0)