提交
This commit is contained in:
1 parent
038a60b09e
commit
3740a7dd80
45 files changed
+10945
-6192
No files matched your search
@@ -38,7 +38,7 @@ export function parseChineseDatetimeText(
|
||||
}
|
||||
|
||||
const cnMatch = raw.match(
|
||||
/^(\d{4})年(\d{1,2})月(\d{1,2})日(?:\s*(\d{1,2})[时::](\d{1,2})(?:[分::](\d{1,2})[秒]?)?)?/
|
||||
/^(\d{4})年(\d{1,2})月(\d{1,2})日(?:\s*(\d{1,2})[时点::](\d{1,2})(?:[分::](\d{1,2})[秒]?)?)?/
|
||||
)
|
||||
if (!cnMatch) return null
|
||||
|
||||
|
||||
Reference in new issue
Block a user