fix: selection should not be empty

pull/3/head
Adam Pash 8 years ago
parent 81ed4f00ed
commit 457075889d

@ -53,7 +53,7 @@ export function select(opts) {
const { selectors } = extractionOpts;
const matchingSelector = selectors.find(selector => $(selector).length === 1);
const matchingSelector = selectors.find(selector => $(selector).length === 1 && $(selector).text().trim() !== '');
if (!matchingSelector) return null;

Loading…
Cancel
Save