WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
134808
Phone numbers that span two lines are not detected
https://bugs.webkit.org/show_bug.cgi?id=134808
Summary
Phone numbers that span two lines are not detected
Brady Eidson
Reported
2014-07-10 12:07:07 PDT
Phone numbers that span two lines are not detected. <
rdar://problem/17601146
>
Attachments
Patch v1
(4.73 KB, patch)
2014-07-10 12:13 PDT
,
Brady Eidson
thorton
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2014-07-10 12:13:03 PDT
Created
attachment 234716
[details]
Patch v1
Tim Horton
Comment 2
2014-07-10 17:35:29 PDT
Comment on
attachment 234716
[details]
Patch v1 View in context:
https://bugs.webkit.org/attachment.cgi?id=234716&action=review
> Source/WebCore/editing/Editor.cpp:3397 > + // If this text iterator range's end position is before the end of the full range, > + // then scan a window that is a bit before and a bit after this text iterator range.
Why do we not search backwards a bit if we end at the end of the range?
Brady Eidson
Comment 3
2014-07-10 17:53:09 PDT
(In reply to
comment #2
)
> (From update of
attachment 234716
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=234716&action=review
> > > Source/WebCore/editing/Editor.cpp:3397 > > + // If this text iterator range's end position is before the end of the full range, > > + // then scan a window that is a bit before and a bit after this text iterator range. > > Why do we not search backwards a bit if we end at the end of the range?
Currently when we extend a range to search it, we extend it 15 characters in both directions. So if we did what you suggest, we would be expanding the end of the end range to 15 previous. Quite often in practice, the final chunk of text from the iterator will already have been 15 characters long, so doing this extension would be re-scanning those 15 characters. But if the final chunk was shorter than 15 characters - say it was 1 character - then we already would've scanned that range by extending the end of the previous chunk 15 characters *forward* Combine this with the fact that the original input range is extended 15 in each direction from the actual selection, and I don't see how stopping at the end would miss anything we want to scan.
Brady Eidson
Comment 4
2014-07-11 16:56:42 PDT
http://trac.webkit.org/changeset/171016
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug