Skip to content

TypeError: decodeComponents(...).join is not a function #345

@KatsuragiCSL

Description

@KatsuragiCSL

Version: v7.1.1

Crash occured when # kun%ea%ba%5a%ba is parsed by queryString.parse
This hash is valid and should be parsed correctly as { ' kun%ea%ba%5a%ba': null }
For example in chrome's development tools' console the url https://google.com# kun%ea%ba%5a%ba can be parsed without problems:

const url = new URL("https://google.com#  kun%ea%ba%5a%ba");
url

image

Code to reproduce

const queryString = require('query-string');

const parsed = queryString.parse("#  kun%ea%ba%5a%ba");
console.log(parsed);

Results

TypeError: decodeComponents(...).join is not a function

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