nl_tokens: Narrows down text range adjusting selection to non - space characters
pl_tokens: function ( text , start , end ) { var range = require ( 'range' ) . create ( start , end ) ; var reSpace = / [\s\n\r\u00a0] / ; // narrow down selection until first non-space character while ( range . start < range . end ) { if ( ! reSpace . test ( text . charAt ( range . start ) ) ) break ; range . start ++ ; } while ( range . end > range . start ) { range . end -- ; if ( ! reSpace . test ( text . charAt ( range . end ) ) ) { <mask> . end ++ ; break ; } } return range ; }