Closed Bug 686775 Opened 13 years ago Closed 13 years ago

External API version of StripWhitespace fails to strip \b

Categories

(Core :: XPCOM, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: neil, Assigned: atulagrwl)

Details

(Whiteboard: [good first bug])

Attachments

(1 file)

The internal API version of StripWhitespace strips kWhitespace which is defined to be "\b\t\r\n "; however the external API version of StripWhitespace uses " \t\n\r" and " \t\r\n" thus overlooking the "\b".
What does it mean to strip \b? Isn't that a zero-width match?
You're thinking regexp. This is a string literal, so it's backspace.
Attached patch Patch v1Splinter Review
Assignee: nobody → atulagrwl
Attachment #573139 - Flags: review?(benjamin)
Attachment #573139 - Flags: review?(benjamin) → review+
https://hg.mozilla.org/mozilla-central/rev/4dc32cede297
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Component: String → XPCOM
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: