mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Make the comment more generic.
This commit is contained in:
@@ -9,7 +9,7 @@ const rePropName = RegExp(
|
||||
'\\[(?:' +
|
||||
// Match numbers.
|
||||
'(-?\\d+(?:\\.\\d+)?)' + '|' +
|
||||
// Or match strings (supports escaping quotation marks).
|
||||
// Or match strings (supports escaping characters).
|
||||
'(["\'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2' +
|
||||
')\\]'+ '|' +
|
||||
// Or match "" as the space between consecutive dots or empty brackets.
|
||||
|
||||
Reference in New Issue
Block a user