Skip to content

Commit 08ae741

Browse files
authored
Merge pull request #24195 from arup1221/24120-fix-date
CLI: Change `/Date$/` to `/Dates$/i`
2 parents 2b9bf9a + def1784 commit 08ae741

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

code/lib/cli/src/generators/configure.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ describe('configurePreview', () => {
131131
controls: {
132132
matchers: {
133133
color: /(background|color)$/i,
134-
date: /Date$/,
134+
date: /Date$/i,
135135
},
136136
},
137137
},
@@ -162,7 +162,7 @@ describe('configurePreview', () => {
162162
controls: {
163163
matchers: {
164164
color: /(background|color)$/i,
165-
date: /Date$/,
165+
date: /Date$/i,
166166
},
167167
},
168168
},
@@ -213,7 +213,7 @@ describe('configurePreview', () => {
213213
controls: {
214214
matchers: {
215215
color: /(background|color)$/i,
216-
date: /Date$/,
216+
date: /Date$/i,
217217
},
218218
},
219219
},

code/lib/cli/src/generators/configure.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export async function configurePreview(options: ConfigurePreviewOptions) {
152152
controls: {
153153
matchers: {
154154
color: /(background|color)$/i,
155-
date: /Date$/,
155+
date: /Date$/i,
156156
},
157157
},
158158
},

0 commit comments

Comments
 (0)