You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pit: let a pasted line carry its own price and target
The paste area applied one price and one target to everything in it, so a list
where three endings are worth more than the rest meant claiming the list and
then editing three rows. A line can now say what that ending is worth and what
it points at:
.toplevel .redirect $2.00USD
.yeah $5USD
oranges, pears, plums
Anything on a line beats the form; the form is the default for the whole paste.
Overrides go up as well as down — $5 on a line is honoured even though the
default is $2.
Prices are read in the shapes people type: $5, $5USD, 5.00, USD5, $1.50. Order
on the line does not matter, because the two fields cannot be confused: a price
is the only one that starts with `$` or is all digits, and an all-numeric
ending is rejected anyway. Anything that is not a price is read as the ending
this one points at — the safe misreading, since a stray token then fails
loudly against an ending you do not own rather than silently setting a price.
Zero and negatives are not prices.
Behaviour change: whitespace inside a line now separates fields, not endings.
`a b` on one line used to be two endings and is now one pointed at the other.
Commas and newlines are the separators, which is what the placeholder shows.
The default price moves 1.99 -> 2. PRD 0005 R3 caps a child name at $1.99, but
that arrives with terms and renewals and nothing enforces a ceiling yet, so
this is an operator's asking price and a line may exceed it.
11 more tests. 256 across the pwa suite.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments