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 :: Desktop, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: miketaylr, Unassigned)

References

Details

Originally filed @ https://github.com/webcompat/web-bugs/issues/51385

STR:

  1. go to https://steamcommunity.com/chat/
  2. 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, "[")
}

Note: this is broken in Safari as well.

We've got some contacts at Steam that we're in touch with.

No longer blocks: 1225665
Depends on: 1225665

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

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.