Skip to content

Commit 1956b3a

Browse files
committed
fix: protocolRegex works properly
was messing with how hrefs were working with correct addresses, appending "https://" behind when not needed
1 parent 81bebb7 commit 1956b3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/display-selector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const StyledImage = styled.img`
1515
padding: 5px;
1616
`
1717

18-
const protocolRegex = new RegExp(/:\/\//g)
18+
const protocolRegex = /:\/\//
1919

2020
const DisplaySelector = ({ type, value, linkImage, allowedFileTypes }) => {
2121
switch (type) {

0 commit comments

Comments
 (0)