Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Automattic/mongoose
/ _pathToPositionalSyntax
Function
_pathToPositionalSyntax
lib/schema.js:1222–1227 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
1220
*/
1221
1222
function
_pathToPositionalSyntax(path) {
1223
if
(!/\.\d+/.test(path)) {
1224
return
path;
1225
}
1226
return
path.replace(/\.\d+\./g,
'.$.'
).replace(/\.\d+$/,
'.$'
);
1227
}
1228
1229
/*!
1230
* ignore
Callers
1
schema.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected