Skip to content

Commit

Permalink
url: update display filter to include all file types
Browse files Browse the repository at this point in the history
  • Loading branch information
brookewp committed Oct 3, 2023
1 parent 39b57b0 commit 1929a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/url/src/filter-url-for-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function filterURLForDisplay( url, maxLength = null ) {
filteredURL = filteredURL.replace( '/', '' );
}

const mediaRegexp = /([\w|:])*\.(?:jpg|jpeg|gif|png|svg)/;
const mediaRegexp = /\/([^\/?]+)\.(?:[\w]+)(?=\?|$)/;

if (
! maxLength ||
Expand Down

0 comments on commit 1929a13

Please sign in to comment.