static fromImageUrl(imageUrl) {
    const yearRegEx = /^([0-9]+)([A-z]*)([0-9]*).png/;
    const yearBeforeRegEx = /^(Anteriores)(a)([0-9]+).png/;

    let name = imageUrl;

    const splitName = imageUrl.split('/');
    const dirtyName = splitName[splitName.length - 1];

    if (dirtyName.match(yearRegEx)) {
      name = dirtyName.replace(yearRegEx, '$1 $2 $3').trim();
    } else if (dirtyName.match(yearBeforeRegEx)) {
      name = dirtyName.replace(yearBeforeRegEx, '$1 $2 $3').trim();
    } else {
      name = correctImageName(dirtyName);
      debug(name);
    }

    return name;
  }
/**
   * Transform no accent, dash separated text in the correct legislation name
   * @method fromImageUrl
   * @param  {String} imageUrl The original URL of the image
   * @return {String}          The legislation name
   * @static
   */
Transform no accent, dash separated text in the correct legislation name
@method fromImageUrl
@param  {String} imageUrl The original URL of the image
@return {String}          The legislation name
@static
Transform no accent dash separated text in the correct legislation name @method fromImageUrl @param { String } imageUrl The original URL of the image @return { String } The legislation name @static
static fromImageUrl(imageUrl) {
    const yearRegEx = /^([0-9]+)([A-z]*)([0-9]*).png/;
    const yearBeforeRegEx = /^(Anteriores)(a)([0-9]+).png/;
    let name = imageUrl;
    const splitName = imageUrl.split('/');
    const dirtyName = splitName[splitName.length - 1];
    if (dirtyName.match(yearRegEx)) {
      name = dirtyName.replace(yearRegEx, '$1 $2 $3').trim();
    } else if (dirtyName.match(yearBeforeRegEx)) {
      name = dirtyName.replace(yearBeforeRegEx, '$1 $2 $3').trim();
    } else {
      name = correctImageName(dirtyName);
      debug(name);
    }
    return name;
  }
static fromImageUrl ( imageUrl ) { const yearRegEx = / ^([0-9]+)([A-z]*)([0-9]*).png / ; const yearBeforeRegEx = / ^(Anteriores)(a)([0-9]+).png / ; let name = imageUrl ; const splitName = imageUrl . split ( '/' ) ; const dirtyName = splitName [ splitName . length - 1 ] ; if ( dirtyName . match ( yearRegEx ) ) { name = dirtyName . replace ( yearRegEx , '$1 $2 $3' ) . trim ( ) ; } else if ( dirtyName . match ( yearBeforeRegEx ) ) { name = dirtyName . replace ( yearBeforeRegEx , '$1 $2 $3' ) . trim ( ) ; } else { name = correctImageName ( dirtyName ) ; debug ( name ) ; } return name ; }
Transform no accent, dash separated text in the correct legislation name
 @method fromImageUrl
 @param  {String} imageUrl The original URL of the image
 @return {String}          The legislation name
 @static
Transform no accent dash separated text in the correct legislation name @method fromImageUrl @param { String } imageUrl The original URL of the image @return { String } The legislation name @static