Skip to content

Commit

Permalink
Fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
wender committed Nov 11, 2020
1 parent a79a0f5 commit f726428
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react/utils/normalize.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line no-restricted-imports
import { pathOr } from 'ramda'

export const DEFAULT_WIDTH = 'auto'
Expand Down Expand Up @@ -68,7 +69,7 @@ const defaultReference = { Value: '' }
const defaultSeller = { commertialOffer: { Price: 0, ListPrice: 0 } }

const getPath = url => {
return url.replace(/^[a-zA-Z]{3,5}\:\/{2}[a-zA-Z0-9_.:-]+/, '')
return url.replace(/^[a-zA-Z]{3,5}:\/{2}[a-zA-Z0-9_.:-]+/, '')
}

const getSlug = url => {
Expand Down

0 comments on commit f726428

Please sign in to comment.