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; throw error;
} }
if (name && !/^[A-Z]/.test(name)) { if (name && /^[a-z]/.test(name)) {
const message = `options.name should be capitalised`; const message = `options.name should be capitalised`;
onwarn({ onwarn({
message, message,

Loading…
Cancel
Save