fix capitalize warning

pull/7738/head
Rich Harris 9 years ago
parent f1a28de4b1
commit 6f17979bc6

@ -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