INNER CODE UNIT · TypeScript

prevToken

postalsys/postal-mime · src/address-parser.ts:129

        let prevToken = i ? tokens[i - 1] : null;
        if (token.type === 'operator') {
            switch (token.value) {
                case '<':
                    state = 'address';
                    insideQuotes = false;
                    break;
                case '(':
                    state = 'comment';
                    insideQuotes = false;
                    break;
                case ':':
                    state = 'group';
                    isGroup = true;
                    insideQuotes = false;
                    break;
                case '"':
                    // Track quote state for text tokens

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…