Created
April 23, 2020 14:13
-
-
Save yhara/c33676a01e8119a5bb8c69dd7210fdae to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def conv(txt) | |
txt.gsub(/&Vec<(.+?)>/) do | |
"&[#{$1}]" | |
end | |
end | |
ARGV.each do |path| | |
txt = conv File.read(path) | |
File.write(path, txt) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment