The default bug view has changed. See this FAQ.

External API version of StripWhitespace fails to strip \b

RESOLVED FIXED in mozilla11

Status

()

Core
String
--
minor
RESOLVED FIXED
6 years ago
5 years ago

People

(Reporter: neil@parkwaycc.co.uk, Assigned: Atul Aggarwal)

Tracking

unspecified
mozilla11
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [good first bug])

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
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".

Comment 1

6 years ago
What does it mean to strip \b? Isn't that a zero-width match?
(Reporter)

Comment 2

6 years ago
You're thinking regexp. This is a string literal, so it's backspace.
(Assignee)

Comment 3

6 years ago
Created attachment 573139 [details] [diff] [review]
Patch v1
Assignee: nobody → atulagrwl
Attachment #573139 - Flags: review?(benjamin)
Attachment #573139 - Flags: review?(benjamin) → review+
(Assignee)

Updated

5 years ago
Keywords: helpwanted → checkin-needed
http://hg.mozilla.org/integration/mozilla-inbound/rev/4dc32cede297
Keywords: checkin-needed
Target Milestone: --- → mozilla11
https://hg.mozilla.org/mozilla-central/rev/4dc32cede297
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.