Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
fig bugs in login report
Commit Description:
fig bugs in login report
// 21.1.3.6 String.prototype.endsWith(searchString [, endPosition])
'use strict' ;
var $export = require ( './_export' );
var toLength = require ( './_to-length' );
var context = require ( './_string-context' );
var ENDS_WITH = 'endsWith' ;
var $endsWith = '' [ ENDS_WITH ];
$export ( $export . P + $export . F * require ( './_fails-is-regexp' )( ENDS_WITH ), 'String' , {
endsWith : function endsWith ( searchString /* , endPosition = @length */ ) {
var that = context ( this , searchString , ENDS_WITH );
var endPosition = arguments . length > 1 ? arguments [ 1 ] : undefined ;
var len = toLength ( that . length );
var end = endPosition === undefined ? len : Math . min ( toLength ( endPosition ), len );
var search = String ( searchString );
return $endsWith
? $endsWith . call ( that , search , end )
: that . slice ( end - search . length , end ) === search ;
}
});
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings