Closed Bug 161890 Opened 22 years ago Closed 22 years ago

[PATCH] incorrect regexp in ConvertRGBColorIntoHEXColor()

Categories

(SeaMonkey :: Composer, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: glazou, Assigned: glazou)

Details

Attachments

(2 files)

The regexp in ConvertRGBColorIntoHEXColor() in file editorUtilities.js in
incorrect. A recent change (or regression) in regexps showed it yesterday.

    /rgb\((\d*),*(\d*),*(\d*)\)/

should be read

    /rgb\((\d*),\s*(\d*),\s*(\d*)\)/

to accept whitespaces after the commas.
Attachment #94619 - Flags: review+
Status: NEW → ASSIGNED
Summary: incorrect regexp in ConvertRGBColorIntoHEXColor() → [PATCH] incorrect regexp in ConvertRGBColorIntoHEXColor()
Whiteboard: fix in hand, needs sr=
Attached patch patch v1.1Splinter Review
better patch, thanks Neil
Attachment #94623 - Flags: review+
Keywords: approval, patch
Comment on attachment 94623 [details] [diff] [review]
patch v1.1

sr=bzbarsky if you add \s* before the commas too.
checked in (trunk)
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Whiteboard: fix in hand, needs sr=
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: