mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 02:36:36 +00:00
fix lint error
This commit is contained in:
@@ -302,8 +302,7 @@ module.exports = function (grunt) {
|
|||||||
rules[0].declarations.forEach(declaration => {
|
rules[0].declarations.forEach(declaration => {
|
||||||
if (declaration.property === 'background-color' || declaration.property === 'background') {
|
if (declaration.property === 'background-color' || declaration.property === 'background') {
|
||||||
bgColor = Color(declaration.value.split(' ')[0])
|
bgColor = Color(declaration.value.split(' ')[0])
|
||||||
}
|
} else if (declaration.property === 'color') {
|
||||||
else if (declaration.property === 'color') {
|
|
||||||
const value = /^(.*?)(?:\s*!important)?$/.exec(declaration.value)[1]
|
const value = /^(.*?)(?:\s*!important)?$/.exec(declaration.value)[1]
|
||||||
let match = /^rgba\((.*?),\s*1\)$/.exec(value)
|
let match = /^rgba\((.*?),\s*1\)$/.exec(value)
|
||||||
if (match) {
|
if (match) {
|
||||||
|
|||||||
Reference in New Issue
Block a user