Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/chore.labels-int-api' into chore…
Browse files Browse the repository at this point in the history
….labels-int-api-1
  • Loading branch information
Sai Sankeerth committed Jun 19, 2024
2 parents 19fdec7 + 39e3d56 commit 9a5f095
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/v0/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2258,6 +2258,14 @@ const applyCustomMappings = (message, mappings) => {
);
};

/**
* Gets url path omitting the hostname & protocol
*
* **Note**:
* - This should only be used when there are no dynamic paths in URL
* @param {*} inputUrl
* @returns
*/
const getRelativePathFromURL = (inputUrl) => {
if (isValidUrl(inputUrl)) {
const url = new URL(inputUrl);
Expand Down

0 comments on commit 9a5f095

Please sign in to comment.