Skip to content

Cannot format Hungarian date format yyyy.mm.dd. + fix #97

@hawajrambo

Description

@hawajrambo

It must accept the "." as a standalone date formatting character.

function eval_fmt(fmt, v, opts, flen) {
...
 			default:
-				if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c) === -1) throw new Error('unrecognized character ' + c + ' in ' + fmt);
+				if(".,$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c) === -1) throw new Error('unrecognized character ' + c + ' in ' + fmt);
+				// ^^^ Allow "." for Hungarian date format: yyyy.mm.dd. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions