UNPKG

stylint

Version:
16 lines (13 loc) 415 B
'use strict'; var hashEnding = /^\}/; // check if we're ending a hash module.exports = function checkForHashEnd( line, areWeInAHash ) { if ( typeof areWeInAHash === 'undefined' || typeof line !== 'string' ) { return; } // ex }, but only if we've already establish that we're in a hash' if ( hashEnding.test(line) && areWeInAHash ) { return true; } else { return false; } }