[FIX] web_editor: correct parsing of dailymotion URL
The parsing of dailymotion URL was not done correctly. This made the media dialog duplicate the URL params if such an URL was re-edited. task-2159152 closes odoo/odoo#47102 X-original-commit: 8d8f442f62919b1cee595ed1fae2c6e4f05eb8fa Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -1224,7 +1224,7 @@ var VideoWidget = MediaWidget.extend({
|
||||
instagram: /(.*)instagram.com\/p\/(.[a-zA-Z0-9]*)/,
|
||||
vine: /\/\/vine.co\/v\/(.[a-zA-Z0-9]*)/,
|
||||
vimeo: /\/\/(player.)?vimeo.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/,
|
||||
dailymotion: /.+dailymotion.com\/(video|hub|embed)\/([^_]+)[^#]*(#video=([^_&]+))?/,
|
||||
dailymotion: /.+dailymotion.com\/(video|hub|embed)\/([^_?]+)[^#]*(#video=([^_&]+))?/,
|
||||
youku: /(.*).youku\.com\/(v_show\/id_|embed\/)(.+)/,
|
||||
};
|
||||
const matches = _.mapObject(regexes, regex => url.match(regex));
|
||||
|
||||
Reference in New Issue
Block a user