export function resolveProfile()

in library/markdown-parser/models/profile.ts [53:61]


export function resolveProfile(name: string, profileCollection: Profile[]): Profile {
  const targetProfile = profileCollection.find(p => p.name.includes(name));
  if (targetProfile) {
    return targetProfile;
  } else {
    const id = generateUUID(name);
    return new Profile(id, name, null, null, null, null);
  }
}