Skip to content

Commit

Permalink
Revert change to filter util
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Sep 19, 2023
1 parent 956152a commit dd9e6c4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/url/src/filter-url-for-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
* @return {string} Displayed URL.
*/
export function filterURLForDisplay( url, maxLength = null ) {
if ( ! url ) return url;

// Remove protocol and www prefixes.
let filteredURL = url.replace( /^(?:https?:)\/\/(?:www\.)?/, '' );

Expand Down

0 comments on commit dd9e6c4

Please sign in to comment.