tcgplayer.org -- invalid regex syntax
Moderator: trava90
Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.
Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.
Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
- Clear any current output
- Navigate or refresh the page in question
- Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
-
- Moongazer
- Posts: 13
- Joined: 2019-10-08, 18:29
tcgplayer.org -- invalid regex syntax
TCGPlayer's card searching webpage seems to have stopped working on Pale Moon since they've updated to a "new and improved" version of the site.
Here is a sample link:
https://www.tcgplayer.com/search/all/product?q=ezuri
In the console, it complains about something used as a regex (SyntaxError: invalid regexp group) in their minified javascript. It complains here (at line 1 , column 38574 of this file):
...Oe="help-dismissed",Pe="||",Le=/^(?<qu...
.........................^
I tested with the latest ungoogled chromium also (v83.0.4103.97-1.1) and it works properly there.
Thanks for any help.
Here is a sample link:
https://www.tcgplayer.com/search/all/product?q=ezuri
In the console, it complains about something used as a regex (SyntaxError: invalid regexp group) in their minified javascript. It complains here (at line 1 , column 38574 of this file):
...Oe="help-dismissed",Pe="||",Le=/^(?<qu...
.........................^
I tested with the latest ungoogled chromium also (v83.0.4103.97-1.1) and it works properly there.
Thanks for any help.
Last edited by meatloaf on 2020-08-30, 18:56, edited 1 time in total.
-
- Moon Magic practitioner
- Posts: 2407
- Joined: 2018-05-05, 13:29
Re: tcgplayer.org -- invalid regex syntax
Try reporting it to the website developers.
-
- Moongazer
- Posts: 13
- Joined: 2019-10-08, 18:29
Re: tcgplayer.org -- invalid regex syntax
I've been having this issue as well since 8/21. And this isn't just Pale Moon, it's also an issue with Firefox for Android. The homepage is just a white screen as well as any search function:
https://www.tcgplayer.com/
https://www.tcgplayer.com/search/
A workaround for now has been to use the price guide, but searching still doesn't work from this page:
https://shop.tcgplayer.com/price-guide/pokemon
I did send tcgplayer this feedback:
https://www.tcgplayer.com/
https://www.tcgplayer.com/search/
A workaround for now has been to use the price guide, but searching still doesn't work from this page:
https://shop.tcgplayer.com/price-guide/pokemon
I did send tcgplayer this feedback:
to which they replied with:Your homepage no longer works on Firefox for android version 68.11 and just shows a white screen. Subdomains such as store.tcgplayer.com sometimes will load, but searching for anything will redirect to www.tcgplayer.com which is blank.
which to me reads as "We don't plan to fix it, use Chrome"Thank you for contacting us with your feedback! If you aren't using Chrome, we would recommend giving that a try as it is a free, easy to download browser that is fully supported by our site. In the meantime, I will share your feedback with our Technology and Management teams, we're always working on new tools and initiatives to make the site better so we really appreciate your suggestion and your patience!
-
- Contributing developer
- Posts: 1612
- Joined: 2018-10-28, 19:56
- Location: Georgia
Re: tcgplayer.org -- invalid regex syntax
I believe this could be related to RegExp Lookbehind functionality, which was not added to Firefox until version 78. We tried to implement that once before, but the implementation was quite buggy and caused crashes. I believe the crashes were related to feeding a negative value into the RegExp compiler somewhere, which is kind of a problem given what Lookbehind functionality is supposed to do. I'm guessing that we had a function somewhere that only had proper stack guards in one direction, or something like that. I don't know enough about the details.
viewtopic.php?f=3&t=23646
But this is basically the reason we don't have RegExp lookbehind. The implementation we had was trying to access invalid memory locations (at least on Windows), so it had to be backed out and we haven't really found a better implementation since. Mozilla eventually did it by simply writing a shim that let them import the latest Irregexp from Chromium as they please.
https://hacks.mozilla.org/2020/06/a-new ... dermonkey/
viewtopic.php?f=3&t=23646
But this is basically the reason we don't have RegExp lookbehind. The implementation we had was trying to access invalid memory locations (at least on Windows), so it had to be backed out and we haven't really found a better implementation since. Mozilla eventually did it by simply writing a shim that let them import the latest Irregexp from Chromium as they please.
https://hacks.mozilla.org/2020/06/a-new ... dermonkey/
Off-topic:
I don't know if this piece of trivia interests anyone else, but it means that Mozilla doesn't have an independent RegExp implementation, while WebKit actually does have a different RegExp called Yarr (which Mozilla used to use). So it is an area where the assumption that Mozilla's engine is more distinct from Google's than WebKit is actually breaks down.
I don't know if this piece of trivia interests anyone else, but it means that Mozilla doesn't have an independent RegExp implementation, while WebKit actually does have a different RegExp called Yarr (which Mozilla used to use). So it is an area where the assumption that Mozilla's engine is more distinct from Google's than WebKit is actually breaks down.
"The Athenians, however, represent the unity of these opposites; in them, mind or spirit has emerged from the Theban subjectivity without losing itself in the Spartan objectivity of ethical life. With the Athenians, the rights of the State and of the individual found as perfect a union as was possible at all at the level of the Greek spirit." -- Hegel's philosophy of Mind
Re: tcgplayer.org -- invalid regex syntax
Why can't we look into using Yarr once again?
-
- Astronaut
- Posts: 583
- Joined: 2018-04-20, 20:31
Re: tcgplayer.org -- invalid regex syntax
Interesting, I tried gamejolt, another site that now gives you a blank page, in both Classic and Current Waterfox (the latter has WebRTC support), and both do not work! This is strange.
-
- Astronaut
- Posts: 583
- Joined: 2018-04-20, 20:31
Re: tcgplayer.org -- invalid regex syntax
Tried Gamejolt on Safari on Mac, it worked. Waterfox Current does not work.
-
- Pale Moon guru
- Posts: 37676
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: tcgplayer.org -- invalid regex syntax
For the record, this seems to be related to something called "named capture groups", a method to use names instead of number references inside regex for capture groups. Not related to lookbehind/lookaround.
As if regex should be so long and complex that you need to start doing this
I don't know if we could go back to yarr. It'd be a hell of a lot of work to do if so, and would likely all be up to little old me to do it, because it's JS and nobody else dares even look at that monkey let alone shovel its shit.
As if regex should be so long and complex that you need to start doing this

I don't know if we could go back to yarr. It'd be a hell of a lot of work to do if so, and would likely all be up to little old me to do it, because it's JS and nobody else dares even look at that monkey let alone shovel its shit.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- Astronaut
- Posts: 583
- Joined: 2018-04-20, 20:31
Re: tcgplayer.org -- invalid regex syntax
Is there any other way?
-
- Pale Moon guru
- Posts: 37676
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: tcgplayer.org -- invalid regex syntax
Appeal to the webmasters and ask them kindly not to use chrome-specific regex?
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite