Last active
January 3, 2016 14:08
-
-
Save mackuba/8473751 to your computer and use it in GitHub Desktop.
Clean up stupid docs that CAPITALIZE words like MUST or SHOULD and make it very HARD to READ such TEXT.
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
#!/usr/bin/env ruby | |
STDIN.each_line do |line| | |
print line.gsub(/\b[A-Z]{2,}\b/) { |word| word.downcase } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment