From 4a318b467090c487b8ab37afca90e5b93380ab27 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Mon, 19 Jan 2026 18:24:26 -0500 Subject: [PATCH 1/2] stub out package when StringView in Base --- src/StringViews.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/StringViews.jl b/src/StringViews.jl index 57d9e08..6fd5f4e 100644 --- a/src/StringViews.jl +++ b/src/StringViews.jl @@ -10,6 +10,10 @@ a `StringView` is intended to be usable in any context where you might have otherwise used `String`. """ module StringViews + +# no longer needed after https://github.com/JuliaLang/julia/pull/60526 +if !isdefined(Base, StringView) + export StringView, SVRegexMatch """ @@ -141,4 +145,6 @@ include("parse.jl") include("util.jl") include("search.jl") +end + end # module From f9e9673ea6a5d1201d3bf02083e54ee896088b2c Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Mon, 19 Jan 2026 18:27:04 -0500 Subject: [PATCH 2/2] typo --- src/StringViews.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StringViews.jl b/src/StringViews.jl index 6fd5f4e..e95fd7c 100644 --- a/src/StringViews.jl +++ b/src/StringViews.jl @@ -12,7 +12,7 @@ have otherwise used `String`. module StringViews # no longer needed after https://github.com/JuliaLang/julia/pull/60526 -if !isdefined(Base, StringView) +if !isdefined(Base, :StringView) export StringView, SVRegexMatch