Skip to content

Instantly share code, notes, and snippets.

@bdotdub
Created December 13, 2008 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdotdub/35493 to your computer and use it in GitHub Desktop.
Save bdotdub/35493 to your computer and use it in GitHub Desktop.
@@ -95,8 +95,8 @@
this._defaultFlashVersion = 8;
this.filePatterns = {
- flash8: /.mp3/i,
- flash9: /.mp3/i
+ flash8: /\.mp3(\?.*)?$/i,
+ flash9: /\.mp3(\?.*)?$/i
};
this.netStreamTypes = ['aac','flv','mov','mp4','m4v','f4v','m4a','mp4v','3gp','3g2']; // Flash v9.0r115+ "moviestar" formats
@@ -494,7 +494,7 @@
this._normalizeMovieURL = function(smURL) {
if (smURL) {
- if (smURL.match(/.swf/)) {
+ if (smURL.match(/\.swf(\?.*)?$/i)) {
smURL = smURL.substr(0,smURL.lastIndexOf('.swf'));
}
if (smURL.lastIndexOf('/') != smURL.length-1) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment