JavaScript gains first-class support for global substring replacement!
@mathias explains the new String.prototype.replaceAll API: https://v8.dev/features/string-replaceall …
(V8 v8.0 has an experimental implementation behind the --harmony-string-replaceall flag.)
-
-
Same here. Glad the web compat investigation (for changing matchAll accordingly) turned out okay: https://bugs.chromium.org/p/v8/issues/detail?id=9551 …
-
FYI, I have course curriculum (videos, code) out there in the wild that uses a non-global regex with matchAll()... so unfortunately that stuff "breaks" with the change. But... shrugs.
- Još 2 druga odgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.