ES5 computed-property-spacing

This commit is contained in:
Amine Ben hammou
2017-09-21 09:12:23 +00:00
parent a9d129fddc
commit 9adca07393
2 changed files with 2 additions and 3 deletions

View File

@ -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,

View File

@ -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.