Skip to content

Commit

Permalink
simplify occursin
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Oct 24, 2023
1 parent d27941e commit f1d3d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/startup.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import OhMyREPL
OhMyREPL.colorscheme!("TomorrowNightBright")
import Pkg
Pkg.UPDATED_REGISTRY_THIS_SESSION[] = true
if occursin(splitpath(Base.active_project())[end-1],"v"*string(VERSION))
if occursin("v"*string(VERSION)[1:4],Base.active_project())
Pkg.activate(temp=true)
end
```
Expand All @@ -30,7 +30,7 @@ recompilation runs.

The code
```julia
if occursin(splitpath(Base.active_project())[end-1],"v"*string(VERSION))
if occursin("v"*string(VERSION)[1:4],Base.active_project())
Pkg.activate(temp=true)
end
```
Expand Down

0 comments on commit f1d3d4b

Please sign in to comment.