Skip to content

Commit ec94608

Browse files
author
Ethan Goldberg
committed
review changes
1 parent 6fe0e10 commit ec94608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/prop-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ module.exports = {
305305
* @param {string} the identifier to strip
306306
*/
307307
function stripQuotes(string) {
308-
if (string[0] === '\'' || string[0] === '"') {
308+
if (string[0] === '\'' || string[0] === '"' && string[0] === string[string.length - 1]) {
309309
return string.slice(1, string.length - 1);
310310
}
311311
return string;

0 commit comments

Comments
 (0)