{
"description": "Shared vectors for the private-text lexer in core and in the OpenCode plugin. Each input is one text value.",
"vectors": [
{ "name": "a block", "input": "a secret b", "expected": "a b" },
{
"name": "nested blocks",
"input": "a s1s2s3 b",
"expected": "a b"
},
{
"name": "an opener with attributes",
"input": "a secret b",
"expected": "a b"
},
{
"name": "mixed case and whitespace",
"input": "a < PRIVATE >secret Private > b",
"expected": "a b"
},
{
"name": "a > inside a quoted attribute",
"input": "a 0\">secret b",
"expected": "a b"
},
{
"name": "a /> inside a quoted attribute",
"input": "a secret b",
"expected": "a b"
},
{ "name": "an unterminated opener", "input": "a secret b", "expected": "a " },
{
"name": "a tag cut off before its >",
"input": "a b", "expected": "a b" },
{
"name": "a stray closer after a block",
"input": "a x b c",
"expected": "a b c"
},
{
"name": "a self-closing tag",
"input": "a b c",
"expected": "a b c"
},
{
"name": "an escaped tag",
"input": "a <private>b</private> c",
"expected": "a <private>b</private> c"
},
{
"name": "a JSON-escaped tag",
"input": "a \\u003cprivate\\u003eb c",
"expected": "a \\u003cprivate\\u003eb c"
},
{
"name": "another tag name",
"input": "a b c",
"expected": "a b c"
},
{
"name": "a self-closing tag inside a block",
"input": "a x y b",
"expected": "a b"
},
{
"name": "text without markers",
"input": "Fix the queue: 2 < 3 > 1, private data stays",
"expected": "Fix the queue: 2 < 3 > 1, private data stays"
},
{ "name": "an empty value", "input": "", "expected": "" },
{
"name": "a closer quoted in a self-closing tag inside a block",
"input": "a \"/>SECRET b",
"expected": "a b"
},
{
"name": "a closer single-quoted in a self-closing tag inside a block",
"input": "a SECRET b",
"expected": "a b"
},
{
"name": "an opener quoted in a self-closing tag inside a block",
"input": "a x\"/>SECRET b",
"expected": "a b"
},
{
"name": "a closer quoted in a self-closing tag outside a block",
"input": "a \"/> b",
"expected": "a \"/> b"
},
{
"name": "a closer single-quoted in a self-closing tag outside a block",
"input": "a b",
"expected": "a b"
},
{
"name": "an opener quoted in a self-closing tag outside a block",
"input": "a \"/> b SECRET c",
"expected": "a \"/> b c"
},
{
"name": "an unbalanced quote in an opener",
"input": "a SECRET b",
"expected": "a "
},
{
"name": "an unbalanced quote in a self-closing tag outside a block",
"input": "a SECRET b",
"expected": "a "
},
{
"name": "an unbalanced quote in a closer",
"input": "a SECRET b",
"expected": "a "
},
{
"name": "an opener quoted in another tag's attribute",
"input": "a \">SECRET c",
"expected": "a \">SECRET b",
"expected": "a b"
},
{
"name": "a closer single-quoted in another tag inside a block",
"input": "a SECRET b",
"expected": "a b"
},
{
"name": "a > quoted in another tag inside a block",
"input": "a 0\">SECRET b",
"expected": "a b"
},
{
"name": "a closer in a comment inside a block",
"input": "a SECRET b",
"expected": "a b"
},
{
"name": "a closer in CDATA inside a block",
"input": "a ]]>SECRET b",
"expected": "a b"
},
{
"name": "an unterminated comment inside a block",
"input": "a