Closed
Bug 1629092
Opened 5 years ago
Closed 4 years ago
https://steamcommunity.com/chat/ fails to load due to not having regexp lookbehind support
Categories
(Web Compatibility :: Site Reports, defect, P1)
Web Compatibility
Site Reports
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: miketaylr, Unassigned)
References
Details
Originally filed @ https://github.com/webcompat/web-bugs/issues/51385
STR:
- go to https://steamcommunity.com/chat/
- log in
Expected: page loads
Actual: it doesn't
SyntaxError: invalid regexp group
The offending code is here:
t.prototype.ConvertBBCodeMessageContentToPlainTextMessageContent = function(e) {
return e = (e = (e = (e = (e = e.replace(/\[emoticon\](.+?)\[\/emoticon\]/g, ":$1:"))
.replace(/\[url=(.*?)\]\1\[\/url\]/g, "$1"))
.replace(/\[url=(.*?)\](.*?)\[\/url\]/g, "$1 ($2)"))
.replace(/(?<!\\)\[\/?.+?\]/g, ""))
.replace(/\\\[/g, "[")
}
Reporter | ||
Comment 1•5 years ago
|
||
Note: this is broken in Safari as well.
Reporter | ||
Comment 2•5 years ago
|
||
We've got some contacts at Steam that we're in touch with.
Updated•5 years ago
|
Comment 3•4 years ago
|
||
The issue no longer occurs.
https://prnt.sc/wdnxug
https://prnt.sc/wdny58
Tested with:
Browser / Version: Firefox Nightly 86.0a1 (2020-12-30)
Operating System: Windows 10 Pro
Updated•4 years ago
|
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•