We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9da161 commit 1f1e52fCopy full SHA for 1f1e52f
src/matchers.jl
@@ -156,7 +156,7 @@ function defslot_term_matcher_constructor(term)
156
# if data is not a list, return nothing
157
!islist(data) && return nothing
158
# if data (is not a tree and is just a symbol) or (is a tree not starting with the default operation)
159
- if !iscall(car(data)) || (istree(car(data)) && string(defslot.operation) != string(operation(car(data))))
+ if !iscall(car(data)) || (istree(car(data)) && nameof(operation(car(data))) != defslot.operation)
160
other_part_matcher = matchers[defslot_index==2 ? 2 : 3] # find the matcher of the normal part
161
162
# checks wether it matches the normal part
0 commit comments