Skip to content

Commit 9fb3661

Browse files
authored
update links (#74)
1 parent 73f5c9b commit 9fb3661

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/Codeception/Module/REST.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
*
7373
* ## JSONPath
7474
*
75-
* [JSONPath](http://goessner.net/articles/JsonPath/) is the equivalent to XPath, for querying JSON data structures.
76-
* Here's an [Online JSONPath Expressions Tester](http://jsonpath.curiousconcept.com/)
75+
* [JSONPath](https://goessner.net/articles/JsonPath/) is the equivalent to XPath, for querying JSON data structures.
76+
* Here's an [Online JSONPath Expressions Tester](https://jsonpath.curiousconcept.com/)
7777
*
7878
* ## Public Properties
7979
*
@@ -465,7 +465,7 @@ public function amAWSAuthenticated(array $additionalAWSConfig = []): void
465465
* keys: name, type, error, size, tmp_name (pointing to the real file path). Each key works
466466
* as the "name" attribute of a file input field.
467467
*
468-
* @see http://php.net/manual/en/features.file-upload.post-method.php
468+
* @see https://php.net/manual/en/features.file-upload.post-method.php
469469
* @see codecept_data_dir()
470470
* @part json
471471
* @part xml
@@ -583,7 +583,7 @@ public function send(string $method, string $url, $params = [], array $files = [
583583
*
584584
* @param array $linkEntries (entry is array with keys "uri" and "link-param")
585585
*
586-
* @link http://tools.ietf.org/html/rfc2068#section-19.6.2.4
586+
* @link https://tools.ietf.org/html/rfc2068#section-19.6.2.4
587587
*
588588
589589
*/
@@ -612,7 +612,7 @@ private function setHeaderLink(array $linkEntries): void
612612
*
613613
* @param array $linkEntries (entry is array with keys "uri" and "link-param")
614614
*
615-
* @link http://tools.ietf.org/html/rfc2068#section-19.6.2.4
615+
* @link https://tools.ietf.org/html/rfc2068#section-19.6.2.4
616616
*
617617
618618
* @part json
@@ -628,7 +628,7 @@ public function sendLink(string $url, array $linkEntries): void
628628
* Sends UNLINK request to given uri.
629629
*
630630
* @param array $linkEntries (entry is array with keys "uri" and "link-param")
631-
* @link http://tools.ietf.org/html/rfc2068#section-19.6.2.4
631+
* @link https://tools.ietf.org/html/rfc2068#section-19.6.2.4
632632
633633
* @part json
634634
* @part xml
@@ -1245,7 +1245,7 @@ public function dontSeeResponseContainsJson(array $json = []): void
12451245
* * `integer:<{val}` - checks that integer is lower than {val} (works with float and string types too).
12461246
* * `string:url` - checks that value is valid url.
12471247
* * `string:date` - checks that value is date in JavaScript format: https://weblog.west-wind.com/posts/2014/Jan/06/JavaScript-JSON-Date-Parsing-and-real-Dates
1248-
* * `string:email` - checks that value is a valid email according to http://emailregex.com/
1248+
* * `string:email` - checks that value is a valid email according to https://emailregex.com/
12491249
* * `string:regex({val})` - checks that string matches a regex provided with {val}
12501250
*
12511251
* This is how filters can be used:
@@ -1265,7 +1265,7 @@ public function dontSeeResponseContainsJson(array $json = []): void
12651265
* ```
12661266
*
12671267
* You can also add custom filters by using `{@link JsonType::addCustomFilter()}`.
1268-
* See [JsonType reference](http://codeception.com/docs/reference/JsonType).
1268+
* See [JsonType reference](https://codeception.com/docs/reference/JsonType).
12691269
*
12701270
* @part json
12711271
* @see JsonType

src/Codeception/Util/JsonType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ protected function matchFilter(string $filter, string $value)
220220
);
221221
}
222222

223-
if ($filter === 'email') { // from http://emailregex.com/
223+
if ($filter === 'email') { // from https://emailregex.com/
224224
// @codingStandardsIgnoreStart
225225
return preg_match('#^(?!(?:(?:\x22?\x5C[\x00-\x7E]\x22?)|(?:\x22?[^\x5C\x22]\x22?)){255,})(?!(?:(?:\x22?\x5C[\x00-\x7E]\x22?)|(?:\x22?[^\x5C\x22]\x22?)){65,}@)(?:(?:[\x21\x23-\x27\x2A\x2B\x2D\x2F-\x39\x3D\x3F\x5E-\x7E]+)|(?:\x22(?:[\x01-\x08\x0B\x0C\x0E-\x1F\x21\x23-\x5B\x5D-\x7F]|(?:\x5C[\x00-\x7F]))*\x22))(?:\.(?:(?:[\x21\x23-\x27\x2A\x2B\x2D\x2F-\x39\x3D\x3F\x5E-\x7E]+)|(?:\x22(?:[\x01-\x08\x0B\x0C\x0E-\x1F\x21\x23-\x5B\x5D-\x7F]|(?:\x5C[\x00-\x7F]))*\x22)))*@(?:(?:(?!.*[^.]{64,})(?:(?:(?:xn--)?[a-z0-9]+(?:-[a-z0-9]+)*\.){1,126}){1,}(?:(?:[a-z][a-z0-9]*)|(?:(?:xn--)[a-z0-9]+))(?:-[a-z0-9]+)*)|(?:\[(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){7})|(?:(?!(?:.*[a-f0-9][:\]]){7,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?)))|(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){5}:)|(?:(?!(?:.*[a-f0-9]:){5,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3}:)?)))?(?:(?:25[0-5])|(?:2[0-4]\d)|(?:1\d{2})|(?:[1-9]?\d))(?:\.(?:(?:25[0-5])|(?:2[0-4]\d)|(?:1\d{2})|(?:[1-9]?\d))){3}))\]))$#iD',
226226
$value);

0 commit comments

Comments
 (0)