Last active
December 9, 2019 10:04
-
-
Save aereal/70230b88bb373f7df95b8361296a4012 to your computer and use it in GitHub Desktop.
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 | |
repo = ENV['REPO'] | |
puts ARGF.read.strip.gsub(/(\s+|\A)#(\d+)\b/m) {|m| "#{$1}#{repo}##{$2}" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
usage: