Innovenergy_trunk/frontend/node_modules/testcafe-browser-tools/lib/utils/flatten-whitespace.js

13 lines
1.3 KiB
JavaScript

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const dedent_1 = __importDefault(require("dedent"));
const WHITESPACE = ' ';
const WHITESPACE_RE = /\s+/g;
function default_1(source, ...substitutions) {
return dedent_1.default(source, ...substitutions).replace(WHITESPACE_RE, WHITESPACE);
}
exports.default = default_1;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxhdHRlbi13aGl0ZXNwYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3V0aWxzL2ZsYXR0ZW4td2hpdGVzcGFjZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLG9EQUE0QjtBQUc1QixNQUFNLFVBQVUsR0FBTSxHQUFHLENBQUM7QUFDMUIsTUFBTSxhQUFhLEdBQUcsTUFBTSxDQUFDO0FBRTdCLG1CQUF5QixNQUFNLEVBQUUsR0FBRyxhQUFhO0lBQzdDLE9BQU8sZ0JBQU0sQ0FBQyxNQUFNLEVBQUUsR0FBRyxhQUFhLENBQUMsQ0FBQyxPQUFPLENBQUMsYUFBYSxFQUFFLFVBQVUsQ0FBQyxDQUFDO0FBQy9FLENBQUM7QUFGRCw0QkFFQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBkZWRlbnQgZnJvbSAnZGVkZW50JztcblxuXG5jb25zdCBXSElURVNQQUNFICAgID0gJyAnO1xuY29uc3QgV0hJVEVTUEFDRV9SRSA9IC9cXHMrL2c7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIChzb3VyY2UsIC4uLnN1YnN0aXR1dGlvbnMpIHtcbiAgICByZXR1cm4gZGVkZW50KHNvdXJjZSwgLi4uc3Vic3RpdHV0aW9ucykucmVwbGFjZShXSElURVNQQUNFX1JFLCBXSElURVNQQUNFKTtcbn1cbiJdfQ==