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 a640136 commit 4bfde3eCopy full SHA for 4bfde3e
src/substitute.jl
@@ -54,8 +54,8 @@ function _occursin(needle, haystack)
54
if iscall(haystack)
55
args = arguments(haystack)
56
for arg in args
57
- if arg isa Integer || arg isa AbstractFloat
58
- isequal(arg, haystack)
+ if needle isa Integer || needle isa AbstractFloat
+ isequal(needle, arg) && return true
59
else
60
occursin(needle, arg) && return true
61
end
0 commit comments