mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-20 23:23:26 +01:00
fix: real-Edge test bounds follow NATIVE_CLEANUP_MS; Aside absence discounted only beside gstack's own browser (review pass 1)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
e7951ea9bd
commit
e48ba5a83e
4 files changed
+18
-14
No files matched your search
@@ -37,14 +37,15 @@ export function letteredOptions(text: string): string[] {
|
||||
/**
|
||||
* A statement that Aside is absent, the probe's result, names no Aside drive: "(Recommended, since Aside isn't
|
||||
* available)" on the gstack drive option (gate 41246728073). Only Aside as the subject of a negated availability
|
||||
* predicate is discounted, so any other Aside mention in the option still counts.
|
||||
* predicate on an option that names gstack's own browser is discounted, so any other Aside mention still counts and
|
||||
* an absence clause before an offer to launch and drive Aside is still an Aside drive.
|
||||
*/
|
||||
const ASIDE_ABSENCE = /\bAside(?: browser| app)?\s+(?:(?:is|was)(?:n['’]t|\s+not)\s+(?:available|installed|detected|running|ready|reachable)|is\s+unavailable)\b/gi;
|
||||
|
||||
/** Inspect lettered consent options, not narration that quotes an unavailable option. */
|
||||
export function asideDriveOptions(text: string): string[] {
|
||||
return letteredOptions(text).filter(option => {
|
||||
const named = option.replace(ASIDE_ABSENCE, '');
|
||||
const named = /\bgstack['’]s own\b/i.test(option) ? option.replace(ASIDE_ABSENCE, '') : option;
|
||||
const currentOffer = named.replace(
|
||||
/\b(?:I|we)(?:['’]ll| will) (?:re[- ]?ask|ask again)(?: (?:you|this question))? with (?:the )?(?:"[^"]+"|“[^”]+”|[\w -]+?) option(?: included)?\b/gi,
|
||||
'',
|
||||
|
||||
Reference in new issue
Block a user