Support for string glob patterns used in instrumentation configuration.
Support for string glob patterns used in instrumentation configuration.
(maybe-glob {:keys [excluded included]})Returns a predicate which matches provided glob patterns, or nil if no
patterns are provided. A glob pattern is a string where ? is a single
wildcard character and * is a (possibly zero-length) string of wildcard
characters. Takes a map as follows:
| key | description |
|---|---|
:excluded | Collection of glob patterns, where predicate returns false if any match input string. Has precedence over :included. |
:included | Collection of glob patterns, where predicate returns true if collection is empty or any pattern matches input string, false otherwise. |
Returns a predicate which matches provided glob patterns, or nil if no patterns are provided. A glob pattern is a string where `?` is a single wildcard character and `*` is a (possibly zero-length) string of wildcard characters. Takes a map as follows: | key | description | |-----------|-------------| |`:excluded`| Collection of glob patterns, where predicate returns `false` if any match input string. Has precedence over `:included`. |`:included`| Collection of glob patterns, where predicate returns `true` if collection is empty or any pattern matches input string, `false` otherwise.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |