ES5 computed-property-spacing
This commit is contained in:
@ -29,7 +29,6 @@
|
|||||||
"no-empty": 0,
|
"no-empty": 0,
|
||||||
"no-useless-escape": 0,
|
"no-useless-escape": 0,
|
||||||
"wrap-iife": 0,
|
"wrap-iife": 0,
|
||||||
"computed-property-spacing": 0,
|
|
||||||
"no-plusplus": 0,
|
"no-plusplus": 0,
|
||||||
"array-bracket-spacing": 0,
|
"array-bracket-spacing": 0,
|
||||||
"default-case": 0,
|
"default-case": 0,
|
||||||
|
@ -41,9 +41,9 @@ define(
|
|||||||
|
|
||||||
// If the first keys part contains [ and the last ends with ], then []
|
// If the first keys part contains [ and the last ends with ], then []
|
||||||
// are correctly balanced.
|
// are correctly balanced.
|
||||||
if (/\[/.test(keys[0]) && /\]$/.test(keys[ keys_last ])) {
|
if (/\[/.test(keys[0]) && /\]$/.test(keys[keys_last])) {
|
||||||
// Remove the trailing ] from the last keys part.
|
// Remove the trailing ] from the last keys part.
|
||||||
keys[ keys_last ] = keys[ keys_last ].replace(/\]$/, '');
|
keys[keys_last] = keys[keys_last].replace(/\]$/, '');
|
||||||
|
|
||||||
// Split first keys part into two parts on the [ and add them back onto
|
// Split first keys part into two parts on the [ and add them back onto
|
||||||
// the beginning of the keys array.
|
// the beginning of the keys array.
|
||||||
|
Reference in New Issue
Block a user