Skip to content

Replaces too wide of a string portion, ignoring first close brackets. #14

@pursual

Description

@pursual

The lib does not appear to be respecting the closest closing brackets.

stringInterpolation("{\"serviceAgreementChargeDetails\":{\"regularTotalMonthlyCharges\":\"{{monthlyCharge}}\"}}", {monthlyCharge:10}, { sanity: false });

['{"serviceAgreementChargeDetails":{"regularTotalMonthlyCharges":"', undefined]

It is replacing {{monthlyCharge}}\"}} instead of {{monthlyCharge}}

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