tabby/patches/gettext-extractor+3.5.3.patch

14 lines
682 B
Diff
Raw Normal View History

2022-02-11 05:33:14 +08:00
diff --git a/node_modules/gettext-extractor/dist/html/selector.js b/node_modules/gettext-extractor/dist/html/selector.js
index e290d12..cdb1d0b 100644
--- a/node_modules/gettext-extractor/dist/html/selector.js
+++ b/node_modules/gettext-extractor/dist/html/selector.js
@@ -120,7 +120,7 @@ class ElementSelector {
if (elementAttributeValue === null) {
return false;
}
- if (attribute.value) {
+ if (attribute.value !== undefined) {
switch (attribute.operator) {
case '^=':
if (elementAttributeValue.slice(0, attribute.value.length) !== attribute.value) {