Files
caprover/app-backend/built/utils/Utils.js
T
Kasra Bigdeli 918615afbb - Consolidate HTTP/S removal from strings
- Added registry auth check before insert and update
2018-12-28 23:34:37 -08:00

12 lines
358 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Utils {
static removeHttpHttps(input) {
input = input.trim();
input = input.replace(/^(?:http?:\/\/)?/i, '');
input = input.replace(/^(?:https?:\/\/)?/i, '');
return input;
}
}
exports.default = Utils;
//# sourceMappingURL=Utils.js.map