1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 10:05:00 +00:00
serenity/Userland/Libraries/LibJS/Tests/builtins/String
Andreas Kling 9d6f00d918 LibJS: Behave like major engines when substituting missing capture group
When a substitution refers to a 2-digit capture group that doesn't exist
we need to check if the first digit refers to an existing capture group.
In other words, '$10' should be treated as capture group #1, followed by
the literal '0' if 1 is a valid capture group but 10 is not.

This makes the Dromaeo "dom-query" subtest run to completion.
2023-08-29 10:33:48 +02:00
..
String.fromCharCode.js
String.fromCodePoint.js
String.js
String.prototype-generic-functions.js
String.prototype.at.js
String.prototype.charAt.js
String.prototype.charCodeAt.js
String.prototype.codePointAt.js
String.prototype.concat.js
String.prototype.endsWith.js
String.prototype.includes.js
String.prototype.indexOf.js
String.prototype.isWellFormed.js LibJS: Implement String.prototype.isWellFormed 2022-12-01 17:03:55 +01:00
String.prototype.js
String.prototype.lastIndexOf.js
String.prototype.localeCompare.js
String.prototype.match.js
String.prototype.matchAll.js
String.prototype.normalize.js LibJS: Use Unicode normalization within String.prototype.normalize 2022-10-06 22:14:44 +01:00
String.prototype.padEnd.js
String.prototype.padStart.js
String.prototype.repeat.js
String.prototype.replace.js LibJS: Behave like major engines when substituting missing capture group 2023-08-29 10:33:48 +02:00
String.prototype.replaceAll.js
String.prototype.search.js
String.prototype.slice.js
String.prototype.split.js
String.prototype.startsWith.js
String.prototype.substr.js
String.prototype.substring.js
String.prototype.toLocaleLowerCase.js
String.prototype.toLocaleUpperCase.js
String.prototype.toLowerCase.js
String.prototype.toString.js
String.prototype.toUpperCase.js
String.prototype.toWellFormed.js LibJS: Implement String.prototype.toWellFormed 2022-12-01 17:03:55 +01:00
String.prototype.trim.js
String.prototype.valueOf.js
String.raw.js