1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +00:00

LibJS: Implement (mostly) String.prototype.match

JavaScript has a couple of different ways to run a regular expression
on a string. This adds support for one more. :^)
This commit is contained in:
Andreas Kling 2021-03-14 11:03:11 +01:00
parent 2c24c0e451
commit 1db943e146
7 changed files with 91 additions and 1 deletions

View file

@ -37,6 +37,8 @@ struct Flags {
namespace JS {
RegExpObject* regexp_create(GlobalObject&, Value pattern, Value flags);
class RegExpObject : public Object {
JS_OBJECT(RegExpObject, Object);