Skip to content

Commit 1f0d9d0

Browse files
iamkunafc163
andauthored
fix: hide warning while no formatText is given (#102)
* fix: hide warning while no formatText is given * Update src/generate/dayjs.ts Co-authored-by: 偏右 <[email protected]> * Update dayjs.ts * Update dayjs.ts * Update dayjs.ts Co-authored-by: 偏右 <[email protected]>
1 parent d02adc2 commit 1f0d9d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/generate/dayjs.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ const generateConfig: GenerateConfig<Dayjs> = {
118118
}
119119
}
120120

121-
parseNoMatchNotice()
121+
if (text) {
122+
parseNoMatchNotice();
123+
}
122124
return null;
123125
},
124126
},

0 commit comments

Comments
 (0)