diff --git a/src/generate/dayjs.ts b/src/generate/dayjs.ts index b5a9530f0..bdaf2ce0d 100644 --- a/src/generate/dayjs.ts +++ b/src/generate/dayjs.ts @@ -118,7 +118,9 @@ const generateConfig: GenerateConfig = { } } - parseNoMatchNotice() + if (text) { + parseNoMatchNotice(); + } return null; }, },