- First:
- Find...
(?:ISODate|ObjectId)\(("[^"]+")\)
(BSON types) - And replace with...
$1
(the non-ignored capture group)
- Find...
- Second:
- Find...
(/\*\s+\d+\s+\*/)
(index comments) - And replace with...
,
(comma to separate array elements)
- Find...
- Finally
- Remove the stray comma where
/* 1 */
used to be - Wrap everything in
[...]
so it's now an array of objects
- Remove the stray comma where
Created
June 11, 2021 18:30
-
-
Save theraccoonbear/148fe6c90ecb88bff75beb9d4b34eec0 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment