nl_tokens: * @method endsWith ( <find > [ pos ] = length [ case ] = true ) @returns Boolean @short Returns true if the string ends with <find > . @extra <find > may be either a string or regex . Search ends at [ pos ] which defaults to the entire string . Case sensitive if [ case ] is true . @example
pl_tokens: function ( reg , pos , c ) { var str = this , source ; if ( isDefined ( pos ) ) str = str . slice ( 0 , pos ) ; if ( isUndefined ( c ) ) c = <mask> ; source = isRegExp ( reg ) ? reg . source . replace ( '$' , '' ) : escapeRegExp ( reg ) ; return regexp ( source + '$' , c ? '' : 'i' ) . test ( str ) ; }