1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

fix lint error

This commit is contained in:
Baptiste Augrain
2018-10-09 10:10:20 +02:00
parent ff4ef16375
commit a841449771

View File

@@ -302,8 +302,7 @@ module.exports = function (grunt) {
rules[0].declarations.forEach(declaration => {
if (declaration.property === 'background-color' || declaration.property === 'background') {
bgColor = Color(declaration.value.split(' ')[0])
}
else if (declaration.property === 'color') {
} else if (declaration.property === 'color') {
const value = /^(.*?)(?:\s*!important)?$/.exec(declaration.value)[1]
let match = /^rgba\((.*?),\s*1\)$/.exec(value)
if (match) {