rfc-process
Version:
The default blueprint for ember-cli addons.
24 lines (17 loc) • 458 B
JavaScript
import Model, { attr, hasMany, belongsTo } from '@ember-data/model';
export default class RfcModel extends Model {
content;
html;
startDate;
releaseDate;
releaseVersions;
proposalPr;
trackingLink;
teams;
stage;
get title() {
const matcher = this.content.match(/^# (.*)\n/) ?? [];
const [, text] = matcher;
return text;
}
}