-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* π¨ add warning for http and not valid slug * π Refactor after comments #2496 * π¨ Lint #2496 * π π Fix import bug #2496 * π Fix error with validation #2496 * π Check lowercase excluding queryparam #2496 * π Allow http to avoid error msg that confuses #2496 --------- Co-authored-by: Padmaja <[email protected]>
- Loading branch information
1 parent
08d9e93
commit d677f1e
Showing
5 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { getAllDomainUrls } from '../../../satellitesConfig' | ||
|
||
export const isEquinorUrl = (slug: string) => { | ||
return getAllDomainUrls().some((allowedUrl) => slug.toLowerCase().startsWith(allowedUrl)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters