Skip to content

Commit

Permalink
URL
Browse files Browse the repository at this point in the history
  • Loading branch information
mluena committed Nov 14, 2024
1 parent 698154c commit 728d172
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/containers/countries/countries-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ const CountriesTable = () => {
{v.isResource ? (
v.resources?.length ? (
v.resources?.map((r) => {
const URL = r.link_url.replace(/^(?!https?:\/\/)?/i, "https://");
const URL = r.link_url.replace(
/^(?!https?:\/\/)(.*)$/i,
"https://$1",
);

return (
<Popover key={r.link_title}>
Expand Down

0 comments on commit 728d172

Please sign in to comment.