Initial commit
This commit is contained in:
12
node_modules/@rushstack/ts-command-line/lib/escapeSprintf.js
generated
vendored
Normal file
12
node_modules/@rushstack/ts-command-line/lib/escapeSprintf.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
||||
// See LICENSE in the project root for license information.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.escapeSprintf = escapeSprintf;
|
||||
function escapeSprintf(input) {
|
||||
// Escape sprintf-style escape characters
|
||||
// The primary special character in sprintf format strings is '%'
|
||||
// which introduces format specifiers like %s, %d, %f, etc.
|
||||
return input.replace(/%/g, '%%');
|
||||
}
|
||||
//# sourceMappingURL=escapeSprintf.js.map
|
||||
Reference in New Issue
Block a user