Advertisement
Prohause

Secret Data

Jun 1st, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. function secret(input) {
  2.  
  3. 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) {
  4. return '|'.repeat(x.length);
  5. });
  6. console.log(input);
  7. }
  8.  
  9. secret('Agent *Ivankov was in the room when it all happened.\n' +
  10. 'The person in the room was heavily armed.\n' +
  11. 'Agent *Ivankov had to act quick in order.\n' +
  12. 'He picked up his phone and called some unknown number. \n' +
  13. 'I think it was +555-49-796\n' +
  14. 'I can\'t really remember...\n' +
  15. 'He said something about "finishing work" with subject !2491a23BVB34Q and returning to Base _Aurora21\n' +
  16. 'Then after that he disappeared from my sight.\n' +
  17. 'As if he vanished in the shadows.\n' +
  18. 'A moment, shorter than a second, later, I saw the person flying off the top floor.\n' +
  19. 'I really don\'t know what happened there.\n' +
  20. 'This is all I saw, that night.\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement