Skip to content

Commit

Permalink
Whoops, fix || in regex. 😂
Browse files Browse the repository at this point in the history
  • Loading branch information
scottschiller committed May 21, 2017
1 parent cc402c1 commit 66a5563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/soundmanager2.js
Expand Up @@ -290,7 +290,7 @@ function SoundManager(smURL, smID) {
overHTTP = (doc.location ? doc.location.protocol.match(/http/i) : null),
http = (!overHTTP ? 'http:/'+'/' : ''),
// mp3, mp4, aac etc.
netStreamMimeTypes = /^\s*audio\/(?:x-)?(?:mpeg4|aac|flv|mov|mp4||m4v|m4a|m4b|mp4v|3gp|3g2)\s*(?:$|;)/i,
netStreamMimeTypes = /^\s*audio\/(?:x-)?(?:mpeg4|aac|flv|mov|mp4|m4v|m4a|m4b|mp4v|3gp|3g2)\s*(?:$|;)/i,
// Flash v9.0r115+ "moviestar" formats
netStreamTypes = ['mpeg4', 'aac', 'flv', 'mov', 'mp4', 'm4v', 'f4v', 'm4a', 'm4b', 'mp4v', '3gp', '3g2'],
netStreamPattern = new RegExp('\\.(' + netStreamTypes.join('|') + ')(\\?.*)?$', 'i');
Expand Down

0 comments on commit 66a5563

Please sign in to comment.