Skip to content

Commit

Permalink
new regex replacer
Browse files Browse the repository at this point in the history
  • Loading branch information
molon authored and molon committed Jun 11, 2016
1 parent 8af877c commit 289cae7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions MLAutoReplace/DefaultReplaceOther.plist
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,29 @@
<key>replaceContent</key>
<string>@property (nonatomic&lt;{0}&gt;) &lt;{1}&gt;&lt;NSString *,&lt;{2}&gt; *&gt;&lt;&lt;{2}&gt;&gt; *&lt;#name#&gt;</string>
</dict>
<dict>
<key>regex</key>
<string>([^\s]{1}.*)(NSArray|NSMutableArray|NSSet|NSMutableSet)\s*&lt;\s*(\w+)\s*&gt;(\]|)$</string>
<key>replaceContent</key>
<string>&lt;{0}&gt;&lt;{1}&gt;&lt;&lt;{2}&gt; *&gt;&lt;&lt;{2}&gt;&gt; </string>
</dict>
<dict>
<key>regex</key>
<string>^\s*(NSArray|NSMutableArray|NSSet|NSMutableSet)\s*&lt;\s*(\w+)\s*&gt;$</string>
<key>replaceContent</key>
<string>&lt;{0}&gt;&lt;&lt;{1}&gt; *&gt;&lt;&lt;{1}&gt;&gt; *</string>
</dict>
<dict>
<key>regex</key>
<string>([^\s]{1}.*)(NSDictionary|NSMutableDictionary)\s*&lt;\s*(\w+)\s*&gt;(\]|)$</string>
<key>replaceContent</key>
<string>&lt;{0}&gt;&lt;{1}&gt;&lt;NSString *,&lt;{2}&gt; *&gt;&lt;&lt;{2}&gt;&gt; </string>
</dict>
<dict>
<key>regex</key>
<string>^\s*(NSDictionary|NSMutableDictionary)\s*&lt;\s*(\w+)\s*&gt;$</string>
<key>replaceContent</key>
<string>&lt;{0}&gt;&lt;NSString *,&lt;{1}&gt; *&gt;&lt;&lt;{1}&gt;&gt; *</string>
</dict>
</array>
</plist>

0 comments on commit 289cae7

Please sign in to comment.