UNPKG

approvals

Version:

Approval Tests Library - Capturing Human Intelligence

12 lines (11 loc) 401 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertToFilename = convertToFilename; const StringUtils_1 = require("../Utilities/StringUtils"); function convertToFilename(name) { const forbidden = "\\/:?\"<>|' "; for (let forbiddenKey of forbidden) { name = StringUtils_1.StringUtils.replaceAll(name, forbiddenKey, "_"); } return name; }