summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2025-03-20 18:40:08 +0600
committerunwox <me@unwox.com>2025-03-20 18:40:08 +0600
commitbd40987bfc1d02a87f8979b2ef85f7e0948e2bcb (patch)
treed8f7967595c560448b5c5527d471dadcdf77c825
parentd67419149696a0c9bc730575bd5781b80d84f80a (diff)
artoftea: finally fix prices!
-rw-r--r--parser/artoftea.fnl5
1 files changed, 3 insertions, 2 deletions
diff --git a/parser/artoftea.fnl b/parser/artoftea.fnl
index faef61d..386dc77 100644
--- a/parser/artoftea.fnl
+++ b/parser/artoftea.fnl
@@ -24,12 +24,13 @@
(+
(*
(parser.anywhere
- (parser.tag :option {:data-price-prefix "*" :data-price "*"
+ (parser.tag :option {:data-price-prefix "*"
+ :data-price (peg.Cg (parser.till "\"") :price)
:value "*" :selected "selected"}
(peg.Cg (parser.till "</option>") :weight)))
(parser.anywhere
(parser.tag :span {:data-price "*" :class "*"}
- (peg.Cg (parser.till "</span>") :price))))
+ (parser.till "</span>"))))
(parser.anywhere
(parser.tag :span {:data-price "*" :class "*"}
(peg.Cg (parser.till "</span>") :price))))