Closed Bug 1093523 Opened 10 years ago Closed 9 years ago

[Flame][v2.1][Contacts] Contact name highlighting in search not working for some special characters.

Categories

(Firefox OS Graveyard :: Gaia::Contacts, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v2.1 affected)

RESOLVED DUPLICATE of bug 1104139
2.2 S1 (5dec)
Tracking Status
b2g-v2.1 --- affected

People

(Reporter: zikui.yang, Assigned: hola)

References

Details

(Whiteboard: [p=2])

Attachments

(4 files)

Attached image contact1.png
[1.Description]:
It can't show contact name correctly when the contact name contains special character.
log:logcat.txt
Picture:contact.png and contact2.png
happen time:5:01

[2.Testing Steps]: 
1.Create a contact whose name contains special character and save.(Example:@#$)
2.Input # to Search box


[3.Expected Result]: 
Can search contact by special charactor 

[4.Actual Result]: 
Can't search contact by special charactor 

[5.Reproduction build]: 
Gaia-Rev        027a7de0c95320cea0579bfd1a4ceef3e9038f34
Gecko-Rev       https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/ffecb2be228b
Build-ID        20141103001220
Version         34.0

[6.Reproduction Frequency]: 
Always Recurrence,5/5
Attached file logcat.txt
Summary: [MGSEI][Flame][v2.1][Contacts]It can't show contact name correctly when the contact name contains special character. → [Flame][v2.1][Contacts]It can't show contact name correctly when the contact name contains special character.
Assignee: nobody → hola
Target Milestone: --- → 2.1 S9 (21Nov)
Whiteboard: [p=2]
Attached file Pull request
Search and highlighting does work with most symbols. It's not working correctly with ".", "$" and "*", for example, and it had to do with normalization of strings to avoid problems with regex. Fixed that, I realized "$" was not being highlighted because it was being normalized to "s".
Attachment #8524566 - Flags: review?(jmcf)
Comment on attachment 8524566 [details] [review]
Pull request

cancelling review as we are changing the approach to avoid the usage of RegExp in highlighting
Attachment #8524566 - Flags: review?(jmcf)
Target Milestone: 2.1 S9 (21Nov) → 2.2 S1 (5dec)
Summary: [Flame][v2.1][Contacts]It can't show contact name correctly when the contact name contains special character. → [Flame][v2.1][Contacts] Contact name highlighting in search not working for some special characters.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.