Skip to content

Commit 17ae3e6

Browse files
committed
HFP-3448 Fix Vimeo URL regexp case sensitivity
The optional `channels` and `groups` parts are in fact characters so the matching must be case sensitive.
1 parent f1f196e commit 17ae3e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/h5peditor-av.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ H5PEditor.widgets.video = H5PEditor.widgets.audio = H5PEditor.AV = (function ($)
686686
},
687687
{
688688
name: 'Vimeo',
689-
regexp: /^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/i,
689+
regexp: /^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/,
690690
aspectRatio: '16:9',
691691
}
692692
];

0 commit comments

Comments
 (0)