Closed
Bug 293596
Opened 20 years ago
Closed 20 years ago
Chatzilla URL munger rule needs tweaking for ending punctuation
Categories
(Other Applications :: ChatZilla, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: glenjamin+bmo, Assigned: rginda)
Details
(Whiteboard: [cz-patch][cz-0.9.68.5])
Attachments
(1 file)
|
902 bytes,
patch
|
bugzilla-mozilla-20000923
:
review+
shaver
:
approval1.8b3+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 The difficulty with the regular expression is that in a perfect world, it would have to differentiate between punctuation and URL characters. At the moment padding the end of the URL with a bunch of punctuation the munger grabs them, the following URLs break: <http://google.com>; http://www.google.com<> and some daft examples: <http://google.com>;;;;<<:: http://google.com}}}:<<; -- Patch on the way -- Reproducible: Always Steps to Reproduce: 1. Type the URLs above Actual Results: All the punctuation at the end is munged Expected Results: only the actual URLs should be
| Reporter | ||
Comment 1•20 years ago
|
||
Uses a word boundary and an exceptions list instead of the inclusion list of the previous one.
Attachment #183148 -
Flags: review?(silver)
Updated•20 years ago
|
Whiteboard: cz-patch
Comment 3•20 years ago
|
||
Comment on attachment 183148 [details] [diff] [review] Patch for new linkRE I don't know how it works, but it does. r=silver
Attachment #183148 -
Flags: review?(silver) → review+
Comment 4•20 years ago
|
||
Comment on attachment 183148 [details] [diff] [review] Patch for new linkRE Requesting approval for harmless CZ patches
Attachment #183148 -
Flags: approval1.8b3?
Updated•20 years ago
|
Whiteboard: cz-patch → [cz-patch][cz-0.9.68.5]
Comment 5•20 years ago
|
||
Comment on attachment 183148 [details] [diff] [review] Patch for new linkRE a=shaver, but only because silver's the one who has to maintain the code that monster regex is going into without commentary, and he r+'d it!
Attachment #183148 -
Flags: approval1.8b3? → approval1.8b3+
Comment 6•20 years ago
|
||
I added a few lines of comment to this, appologies to shaver for making him read that regexp without warning. :) Checked in -> FIXED.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•