1234567891011121314151617181920 |
- "use strict";
- var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
- const summary_1 = __importDefault(require("./summary"));
- /**
- Parse an HTML content into a list of language
- @param {string} html
- @return {Array}
- */
- function parseLangs(content) {
- const parts = (0, summary_1.default)(content).parts;
- if (parts.length > 0) {
- return parts[0].articles;
- }
- return [];
- }
- exports.default = parseLangs;
|