Closed Bug 634517 Opened 14 years ago Closed 8 years ago

replace function is repeatedly called on a string

Categories

(Toolkit Graveyard :: Microformats, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: xiaoming, Assigned: mkaply)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 Build Identifier: In function "simpleEscape" (.src/toolkit/components/microformats/src/Microformats.js line: 1057) To replace the special characters in the input string the replace function is called 8 times! Which actually can be done in one run. Reproducible: Always
Assignee: nobody → mozilla
Component: General → Microformats
Product: Core → Toolkit
QA Contact: general → microformats
Are you saying I should have done it in one line? I don't know of a way to do all the replaces with one .replace command. I did it this way so it was clear what was going on.
Old microformats code has been removed.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.