Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function secret(input) {
- input = input.replace(/\*[A-Z][A-Za-z]+\b|\+[0-9\-]{10}\b|\![a-zA-Z0-9]+\b|\_[a-zA-Z0-9]+\b/g, function (x) {
- return '|'.repeat(x.length);
- });
- console.log(input);
- }
- secret('Agent *Ivankov was in the room when it all happened.\n' +
- 'The person in the room was heavily armed.\n' +
- 'Agent *Ivankov had to act quick in order.\n' +
- 'He picked up his phone and called some unknown number. \n' +
- 'I think it was +555-49-796\n' +
- 'I can\'t really remember...\n' +
- 'He said something about "finishing work" with subject !2491a23BVB34Q and returning to Base _Aurora21\n' +
- 'Then after that he disappeared from my sight.\n' +
- 'As if he vanished in the shadows.\n' +
- 'A moment, shorter than a second, later, I saw the person flying off the top floor.\n' +
- 'I really don\'t know what happened there.\n' +
- 'This is all I saw, that night.\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement