Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
10
node_modules/fast-check/lib/arbitrary/_internals/helpers/TextEscaper.js
generated
vendored
Normal file
10
node_modules/fast-check/lib/arbitrary/_internals/helpers/TextEscaper.js
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.escapeForTemplateString = escapeForTemplateString;
|
||||
exports.escapeForMultilineComments = escapeForMultilineComments;
|
||||
function escapeForTemplateString(originalText) {
|
||||
return originalText.replace(/([$`\\])/g, '\\$1').replace(/\r/g, '\\r');
|
||||
}
|
||||
function escapeForMultilineComments(originalText) {
|
||||
return originalText.replace(/\*\//g, '*\\/');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue