2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

Update normalizeDataKey to match the spec (#29609)

This commit is contained in:
Steffen Roßkamp
2019-10-31 06:58:09 +01:00
committed by XhmikosR
parent 639c405c65
commit c62efc3ef6
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -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 = {