Skip to content

Commit

Permalink
Merge branch 'bose/2496' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
padms committed Oct 16, 2024
2 parents 458f370 + a5c1f09 commit 8bb7e33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sanityv3/schemas/validations/validateSlug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export const warnHttpOrNotValidSlugExternal = (slug: string) => {
if (!slug.startsWith('http')) return true // ignore mailto , tel
const isHttp = httpRegex.test(slug)
const validSlug = stringIsSlug.test(slug)
const isInvalidEquinorUrl = slug !== slug.toLowerCase() && isEquinorUrl(slug)
const slugWithOutQueryParam = slug.split('?')[0]
const isInvalidEquinorUrl = slugWithOutQueryParam !== slugWithOutQueryParam.toLowerCase() && isEquinorUrl(slug)

let message = ''
if (isHttp) {
Expand Down

0 comments on commit 8bb7e33

Please sign in to comment.