UNPKG

dependency-injection-cat

Version:

DI Cat is a truly clean DI-container, which allows you not to pollute your business logic with decorators from DI/IOC libraries!

11 lines (10 loc) 323 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.removeQuotesFromString = void 0; function removeQuotesFromString(str) { if (/^'.*'$/.test(str) || /^".*"$/.test(str)) { return str.slice(1, -1); } return str; } exports.removeQuotesFromString = removeQuotesFromString;