function getFileByContentSpecificationVersion(data, specificationVersion) {
  let versionRegExp,
    file;
  versionRegExp = getVersionRegexBySpecificationVersion(specificationVersion);
  file = data.find((element) => {
    return element.content.match(versionRegExp);
  });
  if (!file) {
    throw new Error('Not files with version');
  }
  return file.content;
}
When the array of files is provided as a list of parsed objects
it returns the content from file that contains the version data
specified in the specificationVersion parameter
@param {array} data An array of the provided file's content parsed
@param {string} specificationVersion the string of the desired version
@returns {object} object with hasDefinedVersion property and
The content of the file that contains the version data