epubavocado
Version:
I am an EPUB object model aspiring to be standards compliant.
13 lines (12 loc) • 440 B
JavaScript
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export function Properties(Base) {
return class Properties extends Base {
properties() {
const properties = this._resolve('./@properties');
if (properties) {
// normalize spaces and split space separated words
return properties.replace(/\s+/g, ' ').split(' ');
}
}
};
}