Skip to content

Instantly share code, notes, and snippets.

@stuartpb
Created October 11, 2013 04:18
Show Gist options
  • Save stuartpb/6929525 to your computer and use it in GitHub Desktop.
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
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