{"size": 562, "ext": "js", "max_stars_repo_path": "dist/StringUtil/_internal/stringWithSpaceCase.js", "max_stars_repo_name": "anderjason/util", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dist/StringUtil/_internal/stringWithSpaceCase.js", "max_issues_repo_name": "anderjason/util", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dist/StringUtil/_internal/stringWithSpaceCase.js", "max_forks_repo_name": "anderjason/util", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 35.125, "max_line_length": 62, "alphanum_fraction": 0.6672597865}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.stringWithSpaceCase = void 0;
const stringWithNoCase_1 = require("./stringWithNoCase");
function stringWithSpaceCase(input) {
    if (input == null) {
        throw new Error("input is required");
    }
    return stringWithNoCase_1.stringWithNoCase(input)
        .replace(/[\W_]+(.|$)/g, (matches, match) => {
        return match ? " " + match : "";
    })
        .trim();
}
exports.stringWithSpaceCase = stringWithSpaceCase;
//# sourceMappingURL=stringWithSpaceCase.js.map