Make the comment more generic.

This commit is contained in:
John-David Dalton
2017-02-07 02:13:08 -08:00
parent fdd7a5b8d2
commit 3b125166d5

View File

@@ -9,7 +9,7 @@ const rePropName = RegExp(
'\\[(?:' + '\\[(?:' +
// Match numbers. // Match numbers.
'(-?\\d+(?:\\.\\d+)?)' + '|' + '(-?\\d+(?:\\.\\d+)?)' + '|' +
// Or match strings (supports escaping quotation marks). // Or match strings (supports escaping characters).
'(["\'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2' + '(["\'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2' +
')\\]'+ '|' + ')\\]'+ '|' +
// Or match "" as the space between consecutive dots or empty brackets. // Or match "" as the space between consecutive dots or empty brackets.