mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-02 01:42:36 +02:00
Update normalizeDataKey to match the spec (#29609)
This commit is contained in:
committed by
XhmikosR
parent
639c405c65
commit
c62efc3ef6
@@ -26,7 +26,7 @@ function normalizeData(val) {
|
||||
}
|
||||
|
||||
function normalizeDataKey(key) {
|
||||
return key.replace(/[A-Z]/g, chr => chr.toLowerCase())
|
||||
return key.replace(/[A-Z]/g, chr => `-${chr.toLowerCase()}`)
|
||||
}
|
||||
|
||||
const Manipulator = {
|
||||
|
Reference in New Issue
Block a user