mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-03-21 17:34:46 -05:00
* Converted from Asphyxia-Public-Route * Enable `resolveJsonModule` in `tsconfig.json` * WebUI for change name and title.
13 lines
321 B
TypeScript
13 lines
321 B
TypeScript
export const isGF = (info: EamuseInfo) => {
|
|
return info.model.split(':')[2] == 'A';
|
|
};
|
|
|
|
export const isDM = (info: EamuseInfo) => {
|
|
return info.model.split(':')[2] == 'B';
|
|
};
|
|
|
|
export const getVersion = (info: EamuseInfo) => {
|
|
const moduleName: string = info.module;
|
|
return moduleName.match(/([^_]*)_(.*)/)[1];
|
|
};
|