From 02838195656b890a3f195d25b0e1302e83b3524c Mon Sep 17 00:00:00 2001 From: ddcat1115 Date: Mon, 6 Jun 2016 11:05:45 +0800 Subject: [PATCH] fix #1968 --- index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 26d8a0ad22..b0c22cd52c 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,12 @@ req.keys().forEach((mod) => { const v = req(mod); const match = mod.match(/^\.\/([^_][\w-]+)\/index\.jsx?$/); if (match && match[1]) { - exports[camelCase(match[1])] = v; + if (match[1] === 'message' || match[1] === 'notification') { + // message & notification should not be capitalized + exports[match[1]] = v; + } else { + exports[camelCase(match[1])] = v; + } } });