Skip to content

Commit

Permalink
Remove the carousel title and description prefix blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
scottsweb committed Apr 25, 2019
1 parent 0721157 commit 12e0bda
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions modules/carousel/jetpack-carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1270,32 +1270,7 @@ jQuery( document ).ready( function( $ ) {
if ( ! value.match( ' ' ) && value.match( '_' ) ) {
return '';
}
// Prefix list originally based on http://commons.wikimedia.org/wiki/MediaWiki:Filename-prefix-blacklist
$( [
'CIMG', // Casio
'DSC_', // Nikon
'DSCF', // Fuji
'DSCN', // Nikon
'DUW', // some mobile phones
'GEDC', // GE
'IMG', // generic
'JD', // Jenoptik
'MGP', // Pentax
'PICT', // misc.
'Imagen', // misc.
'Foto', // misc.
'DSC', // misc.
'Scan', // Scanners
'SANY', // Sanyo
'SAM', // Samsung
'Screen Shot [0-9]+', // Mac screenshots
] ).each( function( key, val ) {
var regex = new RegExp( '^' + val );
if ( regex.test( value ) ) {
value = '';
return;
}
} );

return value;
},

Expand Down

0 comments on commit 12e0bda

Please sign in to comment.