Skip to content

Statistic countdown is not escaping text #1672

@hugojerez

Description

@hugojerez
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.4.10

Environment

VueAntDesign:Countdown

Reproduction link

Edit on CodeSandbox

Steps to reproduce

According to Momentjs escape syntax all we need is brackets to make a escaped string ' [escaped]'

When I'm trying to escaping the word "escapedstring", the result is unexpected

<a-statistic-countdown :value="moment().add(3,'days')" format="D [escapedstring] H [escapedstring] m [escapedstring] s" />
This component render like this
2 [e5caped5tring] 23 [e5caped5tring] 57 [e5caped5tring] 5

What is expected?

2 [escapedstring] 23 [escapedstring] 57 [escapedstring] 5

What is actually happening?

Can't escape a string in format prop

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions