timrwood/moment — Issue #45: Allow numbers and letters as field separators in parsing format
Author: hleinone
Created: 2011-11-10 12:27:36+00:00
State: open

For instance, when parsing a ISO-8601 date string where the letter T is a separator between the date and the time values. The following results incorrectly `2011-11-01T00:11:11`.

moment("2011-11-11T11:11:11", "YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm:ss");

This is due to the regex `[0-9a-zA-Z]` in the format to array parsing. My suggestion would be introducing an escape character for alphanumeric separators.