• Ok, just added a bug for those: https://github.com/espruino/Espruino/iss­ues/522 and https://github.com/espruino/Espruino/iss­ues/523

    However, I've got to wonder what you're trying to do on Espruino where you need this? Unfortunately I think at the moment implementation of more JS language features has to take a back seat to fixing problems that users are encountering when they're trying to use it for controlling hardware.

    As far as RegEx, I'd like to implement it, but it's a matter of finding a compact RegEx library that implements RegExes per the JS standard and also has a suitable license. I did have a quick look but didn't find one.

    The small ones I did find managed to fit into maybe 5k - which would be ok on the Pico, but more of a struggle on the original board.


Avatar for Gordon @Gordon started