Created
October 11, 2013 04:18
-
-
Save stuartpb/6929525 to your computer and use it in GitHub Desktop.
JavaScript to turn any example in an RFC into the most boring erotic slashfic ever
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function convertToEroticSlashfic(example) { | |
return example.replace(/her/g, 'his') | |
.replace(/Alice/g, 'Harry') | |
.replace(/Bob/g, 'Draco'); | |
} | |
var convertToEroticSlashfic_codegolf = | |
function(s){return s.replace(/Alice/g,'Linda')} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment