Skip to content

hooks/ponytail-config.js: JSON.parse doesn't strip BOM — config silently fails on Windows #375

Description

@nanaubusiness

In hooks/ponytail-config.js line 86:

const config = JSON.parse(fs.readFileSync(configPath, 'utf8'));

Unlike ponytail-activate.js (which strips UTF-8 BOM at line 49) and check-versions.js (which strips BOM at line 34), this function does not strip the BOM before JSON parsing. Config files saved with a BOM (common on Windows) cause silent parse failures, making user config settings be ignored with no warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions