|
|
@@ -904,11 +904,14 @@ class Validation
|
|
|
* @param string $check Value to check
|
|
|
* @param bool $strict Require URL to be prefixed by a valid scheme (one of http(s)/ftp(s)/file/news/gopher)
|
|
|
* @return bool Success
|
|
|
+ * @link https://tools.ietf.org/html/rfc3986
|
|
|
*/
|
|
|
public static function url($check, $strict = false)
|
|
|
{
|
|
|
static::_populateIp();
|
|
|
- $alpha = '0-9\p{L}\p{N}';
|
|
|
+
|
|
|
+ $emoji = '\x{1F190}-\x{1F9EF}';
|
|
|
+ $alpha = '0-9\p{L}\p{N}' . $emoji;
|
|
|
$hex = '(%[0-9a-f]{2})';
|
|
|
$subDelimiters = preg_quote('/!"$&\'()*+,-.@_:;=~[]', '/');
|
|
|
$path = '([' . $subDelimiters . $alpha . ']|' . $hex . ')';
|