Skip to content

Commit

Permalink
Fix --example option
Browse files Browse the repository at this point in the history
Fixes #28
  • Loading branch information
ko1nksm committed Feb 15, 2020
1 parent 2bd99fd commit 4294681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/libexec/translator.sh
Expand Up @@ -2,7 +2,7 @@

# shellcheck source=lib/libexec.sh
. "${SHELLSPEC_LIB:-./lib}/libexec.sh"
use constants trim match ends_with_backslash
use constants trim match_pattern ends_with_backslash
load grammar

initialize() {
Expand All @@ -25,7 +25,7 @@ check_filter() {
escape_one_line_syntax escaped_syntax "$1"
eval "set -- $escaped_syntax"
if [ $# -gt 0 ]; then
match "$1" "$SHELLSPEC_EXAMPLE_FILTER" && return 0
match_pattern "$1" "$SHELLSPEC_EXAMPLE_FILTER" && return 0
shift
fi
[ "$SHELLSPEC_TAG_FILTER" ] || return 1
Expand Down

0 comments on commit 4294681

Please sign in to comment.