MCPcopy Index your code
hub / github.com/nodejs/node / sqBracketsMatcher

Function sqBracketsMatcher

deps/npm/lib/utils/queryable.js:7–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5const FORBIDDEN_KEYS = new Set(['__proto__', 'constructor', 'prototype'])
6
7const sqBracketsMatcher = str => str.match(/(.+)\[([^\]]+)\]\.?(.*)$/)
8
9// replaces any occurrence of an empty-brackets (e.g: []) with a special Symbol(append) to represent it
10// this is going to be useful for the setter method that will push values to the end of the array when finding these

Callers 1

parseSqBracketsFunction · 0.85

Calls 1

matchMethod · 0.65

Tested by

no test coverage detected