UNPKG

stylint

Version:
16 lines (13 loc) 336 B
'use strict'; // check if we're starting a hash var hashStarting = /\{$/; module.exports = function checkForHashStart( line ) { if ( typeof line !== 'string' ) { return; } // ex colorsHash = { if ( hashStarting.test(line) && line.indexOf('=') !== -1 ) { return true; } else { return false; } }