GJS Docs now Hosted on gnome.org

2019-06-24 Thread meg ford
Hi, This is just a quick note to let everyone know that I put the GJS Docs site up on GNOME's OpenShift instance. Philip asked me to put it up on a server after the old site became unmaintained, and Andrea Veri suggested it would be easier to host it on GNOME. Thanks to both of them for their assi

Re: GJS : How can I use Regex ( parse HTML ) ?

2019-06-24 Thread Anastasios Lisgaras via javascript-list
Thank you very much for your immediate and fuller answers, I didn't know that I use version 1.50.?? and even more that uses SpiderMonkey 52. ( I didn't even know what exactly it is SpiderMonkey - Sorry ). So the JavaScript code I'm looking for every time should be for the version of SpiderMonkey t

Re: GJS : How can I use Regex ( parse HTML ) ?

2019-06-24 Thread Emmanuele Bassi via javascript-list
On Mon, 24 Jun 2019 at 21:15, Tony Houghton wrote: > > On Mon, 24 Jun 2019 at 18:56, makepost wrote: > >> >> Regex and MarkupParser from GLib won't work because they don't have >> constructors compatible with GObject introspection, so only their helper >> methods such as escape or match_simple a

Re: GJS : How can I use Regex ( parse HTML ) ?

2019-06-24 Thread Tony Houghton
On Mon, 24 Jun 2019 at 18:56, makepost wrote: > > Regex and MarkupParser from GLib won't work because they don't have > constructors compatible with GObject introspection, so only their helper > methods such as escape or match_simple are visible to Gjs. > Do you mean because they have non-standa

Re: GJS : How can I use Regex ( parse HTML ) ?

2019-06-24 Thread makepost
String.prototype.matchAll appears in Firefox at version 67, so it's not available in stable Gjs 1.50.x that uses SpiderMonkey 52. I think I'd have written just like you did, and presented the user some fallback message if tableOfAnnouncementsHTML is null after the match. You can import npm module

Re: GJS : How can I use Regex ( parse HTML ) ?

2019-06-24 Thread Anastasios Lisgaras via javascript-list
Unfortunately, because I don't have autocomplete, I have been struggling with the correct/permissible use of the "match" or "matchAll" function. I repeatedly made the following mistake : "Javascript JS ERROR: TypeError: mystr.matchAll is not a function" Eventually I used the global RegExp from Jav