Skip to content

Trailing equal sign in argument value #91

@WojciechLuczkow

Description

@WojciechLuczkow

Fix for #85 was resolving problem of equal sign in the middle of value.

If one or more = signs are at the end of the value - they are all removed.

Following test case in src/clique_parser.erl will fail:

parse_valid_arg_value_with_trailing_equal_sign_test() ->
    Spec = spec(),
    ArgsAndFlags = ["client-id=anon-Base64v=="],
    {Spec, Args, Flags} = parse({Spec, ArgsAndFlags}),
    ?assertEqual(Args, [{"client-id", "anon-Base64v=="}]),
    ?assertEqual(Flags, []).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions