Skip to content

Commit

Permalink
optimize regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbar42 committed May 4, 2017
1 parent a1eaa5c commit 0f548c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/videojs5.hlsjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,9 @@ function Html5HlsJS(source, tech) {
hls.loadSource(source.src);
}

var hlsTypeRE = /^(application\/x-mpegURL|application\/vnd\.apple\.mpegurl)$/i;

var HlsSourceHandler = {
canHandleSource: function(source) {
var hlsTypeRE = /^application\/(x-mpegURL|vnd\.apple\.mpegURL)$/i;
var hlsExtRE = /\.m3u8/i;

if (source.skipContribHlsJs) {
Expand Down

0 comments on commit 0f548c9

Please sign in to comment.