Closed eugene-rom closed 3 years ago
And I was so happy to finally see named capture groups in javascript. I'll look into it today.
Thank you!
Correction for my post - v8 also doesn't work in 3.36, (Jan 20 13:57:46 eugene gjs[2135]: JS ERROR: Extension kitchentimer@blackjackshellac.ca: SyntaxError: invalid regexp group @ /home/eugene/.local/share/gnome-shell/extensions/kitchentimer@blackjackshellac.ca/menuitem.js:1
).
v7 works ok.
Settings hsould work in 20.04 now
42369d15648b03ecd2033accc939af268b9a618e
Verified that the problem is named regex groups,
gjs> re=/(?<foo>[a-z]+)/;
typein:1:1 invalid regexp group:
typein:1:1 (?<foo>[a-z]+)
typein:1:1 .^
@<stdin>:1:42
@eugene-rom can you try with the latest master branch from github?
@blackjackshellac, tried, and it's fully working! Thank you!
Mostly working, I'll test a bit more and then submit an update to extensions.gnome.org. I'm going to close this now.
While version 8 of this extension works in 3.36, version 10 is not.
It says in log:
Jan 20 09:31:26 eugene gnome-shell[1214]: JS ERROR: Extension kitchentimer@blackjackshellac.ca: SyntaxError: invalid regexp group @ /home/eugene/.local/share/gnome-shell/extensions/kitchentimer@blackjackshellac.ca/alarm_timer.js:1
Settings dialog also not displayed.
I think, support for gnome 3.36 is good idea, as quite popular Ubuntu 20.04 LTS uses gnome 3.36. Thank you.