jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
16 lines (15 loc) • 460 B
JavaScript
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
/**
* @module helpers/normalize
*/
export const normalizeUrl = (...urls) => {
return urls
.filter(url => url.length)
.map(url => url.replace(/\/$/, ''))
.join('/')
.replace(/([^:])[\\/]+/g, '$1/');
};