mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibJS+js: Rename RegExp.{content => pattern}
The spec talks about it as 'pattern', so let's use that instead.
This commit is contained in:
committed by
Andreas Kling
parent
3db8ced4c7
commit
3200ff5f4f
Notes:
sideshowbarker
2024-07-19 01:14:44 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/3200ff5f4f4 Pull-request: https://github.com/SerenityOS/serenity/pull/4103 Reviewed-by: https://github.com/linusg ✅
@@ -35,18 +35,18 @@ class RegExpObject : public Object {
|
||||
JS_OBJECT(RegExpObject, Object);
|
||||
|
||||
public:
|
||||
static RegExpObject* create(GlobalObject&, String content, String flags);
|
||||
static RegExpObject* create(GlobalObject&, String pattern, String flags);
|
||||
|
||||
RegExpObject(String content, String flags, Object& prototype);
|
||||
RegExpObject(String pattern, String flags, Object& prototype);
|
||||
virtual ~RegExpObject() override;
|
||||
|
||||
const String& content() const { return m_content; }
|
||||
const String& pattern() const { return m_pattern; }
|
||||
const String& flags() const { return m_flags; }
|
||||
|
||||
private:
|
||||
virtual bool is_regexp_object() const override { return true; }
|
||||
|
||||
String m_content;
|
||||
String m_pattern;
|
||||
String m_flags;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user