We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aa6b80 commit 3b2baa7Copy full SHA for 3b2baa7
polyfill/lib/ecmascript.mjs
@@ -5419,6 +5419,12 @@ export function IsBuiltinCalendar(id) {
5419
}
5420
5421
export function ASCIILowercase(str) {
5422
+ // The spec defines this operation distinct from String.prototype.lowercase,
5423
+ // so we'll follow the spec here. Note that nasty security issues that can
5424
+ // happen for some use cases if you're comparing case-modified non-ASCII
5425
+ // values. For example, Turkish's "I" character was the source of a security
5426
+ // issue involving "file://" URLs. See
5427
+ // https://haacked.com/archive/2012/07/05/turkish-i-problem-and-why-you-should-care.aspx/.
5428
return Call(StringPrototypeReplace, str, [
5429
/[A-Z]/g,
5430
(l) => {
0 commit comments