/**
 * @license Copyright (c) 2017-2025, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md.
 */

'use strict';

module.exports = function dropTrailingSlash( url ) {
	if ( url.endsWith( '/' ) ) {
		return url.slice( 0, -1 );
	}

	return url;
};
