UNPKG

stylint

Version:
17 lines (13 loc) 311 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; } };