Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Mar 6, 2022
1 parent de25c35 commit bba33be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config/normalize/lib/star_dot_path/parsing/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ import { ESCAPE, SEPARATOR, ANY, ANY_TOKEN } from './special.js'
// - Also, this allows property names to include special characters (dots,
// brackets, star) or to be symbols
// - This removes the need for escaping
// Exceptions are thrown on syntax errors:
// - I.e. query or path syntax errors, or wrong arguments
// - But queries matching nothing do not throw: instead they return nothing
export const maybeParse = function (queryOrPath) {
return Array.isArray(queryOrPath)
? normalizePath(queryOrPath)
Expand Down

0 comments on commit bba33be

Please sign in to comment.