We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fe0e10 commit ec94608Copy full SHA for ec94608
lib/rules/prop-types.js
@@ -305,7 +305,7 @@ module.exports = {
305
* @param {string} the identifier to strip
306
*/
307
function stripQuotes(string) {
308
- if (string[0] === '\'' || string[0] === '"') {
+ if (string[0] === '\'' || string[0] === '"' && string[0] === string[string.length - 1]) {
309
return string.slice(1, string.length - 1);
310
}
311
return string;
0 commit comments