Skip to content

Commit

Permalink
Fix public_ids with format-alike suffixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobochka authored Apr 23, 2019
1 parent 5340ca9 commit f057a8a
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 f057a8a

Please sign in to comment.