Skip to content

Commit

Permalink
Merge pull request #90 from cloudinary/Bobochka-patch-1
Browse files Browse the repository at this point in the history
Fix public_ids with format-alike suffixes
  • Loading branch information
tsi authored Apr 23, 2019
2 parents 5340ca9 + f057a8a commit 5abebee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/cloudinary/models/audio-source.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { objectToQuerystring } from 'utils/querystring';

const DEFAULT_POSTER_PARAMS = { format: 'jpg', resource_type: 'video', transformation: { flags: 'waveform' } };
const COMMON_AUDIO_FORMATS = ['mp3', 'ogg', 'wav', 'mp4'];
const AUDIO_SUFFIX_REMOVAL_PATTERN = RegExp(`\.(${COMMON_AUDIO_FORMATS.join('|')})$$`);
const AUDIO_SUFFIX_REMOVAL_PATTERN = RegExp(`\\.(${COMMON_AUDIO_FORMATS.join('|')})$$`);
const DEFAULT_AUDIO_PARAMS = {
resource_type: 'video',
type: 'upload',
Expand Down

0 comments on commit 5abebee

Please sign in to comment.