In one of my use cases, I need to follow a configuration pattern that requires a lodash-patch-pattern. However, in one of the "handlers" I need it to match any object. I tried using { ... } as the matching pattern but this doesn't work:
matchPattern: Error parsing pattern: Expected "<-", "<=", "}", [a-zA-Z], or quoted string but "." found.
line:1 column:2
{...}
-^---
I also tried using an empty matcher (''), null and undefined matchers. None works. I know this seems odd, but Is there a way to have the declared pattern match "any" object?
In one of my use cases, I need to follow a configuration pattern that requires a
lodash-patch-pattern
. However, in one of the "handlers" I need it to match any object. I tried using{ ... }
as the matching pattern but this doesn't work:I also tried using an empty matcher (
''
),null
andundefined
matchers. None works. I know this seems odd, but Is there a way to have the declared pattern match "any" object?