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

Issue 10220011: Fixed: FQDNs were incorrectly recognized as typos (Closed)

Created:
April 16, 2013, 1:54 p.m. by Thomas Greiner
Modified:
April 17, 2013, 8:08 a.m.
Reviewers:
Wladimir Palant
Visibility:
Public.

Description

Fixed: FQDNs were incorrectly recognized as typos

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M lib/typoFixer.js View 1 chunk +4 lines, -0 lines 1 comment Download

Messages

Total messages: 3
Wladimir Palant
LGTM with the suggested change. http://codereview.adblockplus.org/10220011/diff/1/lib/typoFixer.js File lib/typoFixer.js (right): http://codereview.adblockplus.org/10220011/diff/1/lib/typoFixer.js#newcode134 lib/typoFixer.js:134: domain = domain.substr(0, domain.length ...
April 16, 2013, 1:59 p.m. (2013-04-16 13:59:29 UTC) #1
Thomas Greiner
On 2013/04/16 13:59:29, Wladimir Palant wrote: > LGTM with the suggested change. > > http://codereview.adblockplus.org/10220011/diff/1/lib/typoFixer.js ...
April 16, 2013, 2:06 p.m. (2013-04-16 14:06:39 UTC) #2
Wladimir Palant
April 17, 2013, 7:47 a.m. (2013-04-17 07:47:41 UTC) #3
Sure, regexps applying to the end of a string are generally not very fast.
Still, unless you can show that this performance difference matters (in
particular, when compared with the performance of the matching) I would consider
it premature optimization - the performance gain isn't worth the decreased
readability.

Powered by Google App Engine
This is Rietveld