File tree Expand file tree Collapse file tree 7 files changed +7
-1
lines changed
tests/syntax-highlighting Expand file tree Collapse file tree 7 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 602
602
<keyword >padStart</keyword > <!-- ES2017 -->
603
603
<keyword >raw</keyword >
604
604
<keyword >repeat</keyword >
605
+ <keyword >replaceAll</keyword > <!-- ES2021 -->
605
606
<keyword >replace</keyword >
606
607
<keyword >search</keyword >
607
608
<keyword >slice</keyword >
Original file line number Diff line number Diff line change 134
134
Supported level: ES2020
135
135
136
136
Supported ES2021 proposals:
137
- * (none yet)
137
+ * String.prototype.replaceAll
138
138
139
139
Features from Annex B of the spec are not highlighted to
140
140
discourage their use, except:
Original file line number Diff line number Diff line change @@ -584,6 +584,7 @@ array.flatMap(); // ES2019
584
584
string .matchAll (); // ES2020
585
585
Promise .allSettled (); // ES2020
586
586
BigInt .asUintN (); // ES2020
587
+ string .replaceAll (); // ES2021
587
588
588
589
589
590
/*
Original file line number Diff line number Diff line change @@ -283,6 +283,7 @@ array.flatMap(); // ES2019
283
283
string . matchAll ( ) ; // ES2020
284
284
Promise . allSettled ( ) ; // ES2020
285
285
BigInt . asUintN ( ) ; // ES2020
286
+ string . replaceAll ( ) ; // ES2021
286
287
287
288
288
289
/*
Original file line number Diff line number Diff line change @@ -340,6 +340,7 @@ array.flatMap(); // ES2019
340
340
string . matchAll ( ) ; // ES2020
341
341
Promise . allSettled ( ) ; // ES2020
342
342
BigInt . asUintN ( ) ; // ES2020
343
+ string . replaceAll ( ) ; // ES2021
343
344
344
345
345
346
/*
Original file line number Diff line number Diff line change @@ -868,6 +868,7 @@ array.flatMap(); // ES2019
868
868
string . matchAll ( ) ; // ES2020
869
869
Promise . allSettled ( ) ; // ES2020
870
870
BigInt . asUintN ( ) ; // ES2020
871
+ string . replaceAll ( ) ; // ES2021
871
872
872
873
873
874
/*
Original file line number Diff line number Diff line change @@ -976,6 +976,7 @@ array.flatMap(); // ES2019
976
976
string . matchAll ( ) ; // ES2020
977
977
Promise . allSettled ( ) ; // ES2020
978
978
BigInt . asUintN ( ) ; // ES2020
979
+ string . replaceAll ( ) ; // ES2021
979
980
980
981
981
982
/*
You can’t perform that action at this time.
0 commit comments