Skip to content

Commit

Permalink
Add comment to clarify space usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dilirity committed Oct 7, 2024
1 parent f38137b commit 98d10b4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ public function test_is_cdn_url_method() {
* @group jetpack_photon_filter_url_encoding
*/
public function test_photon_url_filter_url_encodes_path_parts() {
// The first two spaces are not standard spaces - https://www.compart.com/en/unicode/U+202F
$url = Image_CDN_Core::cdn_url( '//example.com/narrow no-break space/name with spaces.jpg', array(), 'https' );

$this->assertEquals( 'https://i0.wp.com/example.com/narrow%E2%80%AFno-break%E2%80%AFspace/name%20with%20spaces.jpg', $url );
Expand Down

0 comments on commit 98d10b4

Please sign in to comment.