Permalink
Browse files

[REDACTED]

  • Loading branch information...
1 parent 58185a0 commit ef359d96002bf9070bb6afa5d705a7aea2ea890b @ymendel committed Jul 14, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 bin/redact
View
@@ -1,11 +1,6 @@
#!/usr/bin/ruby
-input = ARGV[0]
-
-unless input
- puts "usage: redact <sensitive information>"
- exit 1
-end
+input = ARGV[0] || STDIN.read
redacted = input.gsub(/[\w'-]+/) do |word|
if rand < 0.25

0 comments on commit ef359d9

Please sign in to comment.