From ec94608fa63c30fec631fa52ee180a2e1bc22f15 Mon Sep 17 00:00:00 2001 From: Ethan Goldberg Date: Fri, 26 May 2017 11:52:52 -0700 Subject: [PATCH] review changes --- lib/rules/prop-types.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules/prop-types.js b/lib/rules/prop-types.js index 3e18d0aa73..eec5cc4f08 100644 --- a/lib/rules/prop-types.js +++ b/lib/rules/prop-types.js @@ -305,7 +305,7 @@ module.exports = { * @param {string} the identifier to strip */ function stripQuotes(string) { - if (string[0] === '\'' || string[0] === '"') { + if (string[0] === '\'' || string[0] === '"' && string[0] === string[string.length - 1]) { return string.slice(1, string.length - 1); } return string;