-
tommanwell, it seems Gitlab just deployed its latest load of Chromeisms™, as it broke again on Seamonkey (even with JustOff's addon)
-
tommanSyntaxError: invalid regexp group 21.4fceb368.chunk.js:1:37724
-
tommanthis regex, specifically: Re=/^&(?<iid>\d+)$/
-
tommanI'm a total moron with regexes, so can anyone please tell me what's wrong with that one?
-
roboboxprobably another WebComponents thing
-
tommanit's a regex, tho...
-
tommanlet's test what that regex actually does...
-
tomman
-
tommanit matches digits preceded by &, i.e. &12345
-
tommanand the digits are captured in a named capture group
-
tomman(the ?<iid> part, "iid" being the actual name)
-
tomman
-
tomman...aaaand that was implemented on Firefox 78
-
tommanBummer...
-
tomman...at least today I learned something new (and useless... to me!)
-
IanN_Awaytomman: I think frg_Away was looking at the new regular expression stuff
-
tommanif we rewrite the regex as Re=/^&(\d+)$/, it works
-
tommanso not exactly a Chromeism™ this time then :/
-
IanN_Awaytomman: not sure, frg_Away probably has all the gorey details
-
frg_Awaytomman Waterfox Classic has imported it. WaterfoxCo/Waterfox #2229
-
frg_AwayWill öick it next but I am on the parser currently for the optional chaining operator. Trying to get both in but not done in a day :)
-
tommanoooh~
-
tommanRegexes are not my friends anyway :P
-
tommanTIL you can name your capture groups - I guess it's easier to remember match.group("foo") instead of match.group(2)
-
tommanbut then you end writing more code!
-
tommanwtf, Java supports those since Java 7
-
tommanwhy bother with naming your capture groups for such a short regex, why why why?!
-
tomman(it's the one and only group in this example!)
-
tommanforum.palemoon.org/viewtopic.php?f=…=218048&hilit=capture+group#p218048 similar issue at the other side of the fence
-
roboboxpeople still use java in browsers?
-
tommanrobobox: I'm pretty much sure that somewhere, someone is still being forced to use some horrible KVM Java applet for managing their server...
-
frg_Awayrobobox not in the current ones I suspect. java plugin is dead as a doorstopper.