UNPKG

364 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6var REGEX_API_URL = /^.*?api.availity.com(.*)$/;
7
8function getRelativeUrl(url) {
9
10 var result = url.match(REGEX_API_URL);
11 if (result && result[1]) {
12 return "/api" + result[1];
13 }
14
15 return url;
16}
17
18exports.REGEX_API_URL = REGEX_API_URL;
19exports.getRelativeUrl = getRelativeUrl;
\No newline at end of file