console verify App Privacy: real page text (category-only summary sections, ' | ' joined lines, Apple's commas); tracking label without 'data data'; Play Data safety page path confirmed
This commit is contained in:
parent
2b101f0fd8
commit
7e09947e62
5 changed files with 37 additions and 4 deletions
|
|
@ -31,7 +31,7 @@ export interface VerifyResult {
|
|||
notes: string[];
|
||||
}
|
||||
|
||||
const lines = (text: string): string[] => text.normalize('NFC').split(/\r?\n/).map(l => l.replace(/\s+/g, ' ').trim()).filter(Boolean);
|
||||
const lines = (text: string): string[] => text.normalize('NFC').split(/\r?\n| \| /).map(l => l.replace(/\s+/g, ' ').trim()).filter(Boolean);
|
||||
/** Straight and curly quotes as one, case and spaces aside: for comparing labels. */
|
||||
export const fold = (s: string): string => s.normalize('NFC').replace(/[‘’]/g, "'").replace(/[“”]/g, '"').replace(/\s+/g, ' ').trim().toLowerCase();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue