mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Make the comment more generic.
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user