diff --git a/features/draft/spec/tc39-regex-escaping.yml b/features/draft/spec/tc39-regex-escaping.yml deleted file mode 100644 index e1b7aac353a..00000000000 --- a/features/draft/spec/tc39-regex-escaping.yml +++ /dev/null @@ -1,6 +0,0 @@ -draft_date: 2024-11-06 -name: RegExp.escape -description: TODO -spec: https://tc39.es/proposal-regex-escaping/ -compat_features: - - javascript.builtins.RegExp.escape diff --git a/features/regexp-escape.yml b/features/regexp-escape.yml new file mode 100644 index 00000000000..3b01b9ed2a0 --- /dev/null +++ b/features/regexp-escape.yml @@ -0,0 +1,5 @@ +name: RegExp.escape() +description: The `RegExp.escape()` static method takes a string and replaces any characters that are potentially special characters of a regular expression with equivalent escape sequences. For example, `RegExp.escape("[abc]")` returns `"\\[abc\\]"`. +spec: https://tc39.es/proposal-regex-escaping/ +compat_features: + - javascript.builtins.RegExp.escape diff --git a/features/draft/spec/tc39-regex-escaping.yml.dist b/features/regexp-escape.yml.dist similarity index 79% rename from features/draft/spec/tc39-regex-escaping.yml.dist rename to features/regexp-escape.yml.dist index 0a8fc125be5..2c1de3e6c6a 100644 --- a/features/draft/spec/tc39-regex-escaping.yml.dist +++ b/features/regexp-escape.yml.dist @@ -1,4 +1,4 @@ -# Generated from: tc39-regex-escaping.yml +# Generated from: regexp-escape.yml # Do not edit this file by hand. Edit the source file instead! status: