Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: defaults/typoRules.json

Issue 8559070: Integrated URL Fixer into Adblock Plus (Closed)
Left Patch Set: Second batch of changes Created Nov. 9, 2012, 2:33 p.m.
Right Patch Set: Created Nov. 9, 2012, 3:21 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « defaults/prefs.js ('k') | lib/main.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 { 1 {
2 "version": 2, 2 "version": 2,
3 3
4 "expressions": [ 4 "expressions": [
5 // Comma or semicolon instead of dot 5 // Comma or semicolon instead of dot
6 {"find": "[,;]", "replace": "."}, 6 {"find": "[,;]", "replace": "."},
7 7
8 // Leading or trailing dots 8 // Leading or trailing dots
9 {"find": "^\\.+|\\.+$", "replace": ""}, 9 {"find": "^\\.+|\\.+$", "replace": ""},
10 10
11 // Only two of the three w's 11 // Only two of the three w's
12 {"find": "^w{2,4}(\\.)([^\\.]+\\..*)$", "replace": "www.$2"}, 12 {"find": "^w{2,4}(\\.)([^\\.]+\\..*)$", "replace": "www.$2"},
13 13
14 // Missing the dot 14 // Missing the dot
15 {"find": "([^\\.])(com|net|org|edu|mil|gov|aero|biz|coop|info|museum|name|pr o|cat|jobs|mobi|travel)$", "replace": "$1.$2"} 15 {"find": "([^\\.])(com|net|org|edu|mil|gov|aero|biz|coop|info|museum|name|pr o|cat|jobs|mobi|travel)$", "replace": "$1.$2"}
16 ], 16 ],
17 17
18 // Automatically generated dictionaries 18 // Automatically generated dictionaries
19 "domain":{} 19 "domain":{},"domainReferrals":{},"scheme":{}
20 } 20 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld