mediawiki-extensions-Discus.../tests/qunit/cases/timestamp-regex.json

38 lines
1.9 KiB
JSON
Raw Normal View History

[
{
"format": "H:i, j F Y",
"expected": "(\\d{2}):(\\d{2}), (\\d{1,2}) (January|February|March|April|May|June|July|August|September|October|November|December) (\\d{4})[\\u200E\\u200F]? [\\u200E\\u200F]?\\((UTC)\\)",
"message": "(en) Boring"
},
{
"format": "H:i، j xg Y",
"expected": "(\\d{2}):(\\d{2})، (\\d{1,2}) (January|February|March|April|May|June|July|August|September|October|November|December) (\\d{4})[\\u200E\\u200F]? [\\u200E\\u200F]?\\((UTC)\\)",
"message": "(ar) 'xg' specifier"
},
{
"format": "H:i, j F xkY",
"expected": "(\\d{2}):(\\d{2}), (\\d{1,2}) (January|February|March|April|May|June|July|August|September|October|November|December) (\\d{4})[\\u200E\\u200F]? [\\u200E\\u200F]?\\((UTC)\\)",
"message": "(th) 'xkY' specifier"
},
{
"format": "H\"h\"i\"min\" \"de\" j \"de\" F \"de\" Y",
"expected": "(\\d{2})h(\\d{2})min de (\\d{1,2}) de (January|February|March|April|May|June|July|August|September|October|November|December) de (\\d{4})[\\u200E\\u200F]? [\\u200E\\u200F]?\\((UTC)\\)",
"message": "(pt) Escaped text (quotes)"
},
{
"format": "H\\hi\\m\\i\\n \\d\\e j \\d\\e F \\d\\e Y",
"expected": "(\\d{2})h(\\d{2})min de (\\d{1,2}) de (January|February|March|April|May|June|July|August|September|October|November|December) de (\\d{4})[\\u200E\\u200F]? [\\u200E\\u200F]?\\((UTC)\\)",
"message": "(pt) Escaped text (backslashes)"
},
{
"format": "j F Y à H:i",
"expected": "(\\d{1,2}) (January|February|March|April|May|June|July|August|September|October|November|December) (\\d{4}) à (\\d{2}):(\\d{2})[\\u200E\\u200F]? [\\u200E\\u200F]?\\((UTC)\\)",
"message": "(fr) Unescaped text (non-ASCII)"
},
{
"format": "Y年n月j日 (D) H:i",
"expected": "(\\d{4})年(\\d{1,2})月(\\d{1,2})日 \\((Sun|Mon|Tue|Wed|Thu|Fri|Sat)\\) (\\d{2}):(\\d{2})[\\u200E\\u200F]? [\\u200E\\u200F]?\\((UTC)\\)",
"message": "(ja) Unescaped regexp special characters"
}
]