mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-30 20:04:15 +01:00
A first version's public copy keeps out a short owner quote padded with spaces inside its quote marks (#4776)
A first version's public export now also redacts a short owner quote written with spaces just inside its quote marks, like `" water alerts "`. Why: those words reached the public copy and `validate --public` passed it; this closes the gap left open on #4772. Nothing to do: the change is one pattern in lib/autoplan-owner-words.ts. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
6b7714c3e8
commit
f3a89d2105
5 files changed
+10
-7
No files matched your search
@@ -190,7 +190,7 @@ export function ownerIndex(replies: OwnerSource[], o: { deferred?: OwnerSource[]
|
||||
const placements = [
|
||||
...(o.deferred ?? []).flatMap(d => DEFERRAL_RENDERINGS(escape(d.text))),
|
||||
...(o.carried ?? []).map(w => `words=(${escape(JSON.stringify(w))})(?= by=|$)`),
|
||||
...(o.quoted ?? []).map(q => `["“](${escape(q)})["”]`),
|
||||
...(o.quoted ?? []).map(q => `["“]\\s*(${escape(q)})\\s*["”]`),
|
||||
].map(p => new RegExp(p, 'gd')).concat((o.reasons ?? []).map(r => new RegExp(`(?:leave out|leave it out for now|reason to leave it out)\\s*:\\s*(${escape(r)})`, 'gdi')));
|
||||
return { replies: indexed, placements };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user