-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformat.rb
More file actions
executable file
·18 lines (15 loc) · 1.02 KB
/
Copy pathformat.rb
File metadata and controls
executable file
·18 lines (15 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env ruby
file_path = 'MarkTo/Models/InlineProcessor.swift'
content = File.read(file_path)
content.gsub!(/ attributedString/, " attributedString")
content.gsub!(/ string:/, " string:")
content.gsub!(/ attributes:/, " attributes:")
content.gsub!(/ \.font:/, " .font:")
content.gsub!(/ \.backgroundColor:/, " .backgroundColor:")
content.gsub!(/ \.foregroundColor:/, " .foregroundColor:")
content.gsub!(/ \.underlineStyle:/, " .underlineStyle:")
content.gsub!(/ \.link:/, " .link:")
content.gsub!(/ \.strikethroughStyle:/, " .strikethroughStyle:")
content.gsub!(/ \]\)/, " ])")
content.gsub!(/ \)\)/, " ))")
File.write(file_path, content)