fix capitalize warning

pull/1179/head
Rich Harris 7 years ago
parent 8330f328fa
commit 6e31efce11

@ -101,7 +101,7 @@ export default function validate(
throw error;
}
if (name && !/^[A-Z]/.test(name)) {
if (name && /^[a-z]/.test(name)) {
const message = `options.name should be capitalised`;
onwarn({
message,

Loading…
Cancel
Save