Skip to content

Commit b4753bb

Browse files
committed
Change export -> reexport to fix parsing issue, update version
1 parent 753f046 commit b4753bb

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ authors = ["ScottPJones <scottjones@alum.mit.edu>"]
44
keywords = ["Strings", "Characters", "Formatting", "Intern", "Unicode", "Regex"]
55
license = "MIT"
66
uuid = "7bddbee9-b4ee-5d4f-bf0b-c84b4398bbf6"
7-
version = "0.2.0"
7+
version = "0.2.1"
88

99
[deps]
1010
ModuleInterfaceTools = "5cb8414e-7aab-5a03-a681-351269c074bf"

src/Strs.jl

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ __precompile__(true)
22
"""
33
Strs package
44
5-
Copyright 2017-018 Gandalf Software, Inc., Scott P. Jones
5+
Copyright 2017-2019 Gandalf Software, Inc., Scott P. Jones
66
Licensed under MIT License, see LICENSE.md
77
"""
88
module Strs
99

1010
using ModuleInterfaceTools
11-
using ModuleInterfaceTools: m_eval
12-
export @api, V6_COMPAT
11+
export @api
1312

1413
using PCRE2
1514

@@ -25,12 +24,7 @@ export @i_str, @I_str, intern
2524
macro i_str(str) ; Expr(:call, :intern, interpolated_parse(str, StrBase._str)) ; end
2625
macro I_str(str) ; Expr(:call, :intern, interpolated_parse(str, StrBase._str, true)) ; end
2726

28-
const curmod = @static V6_COMPAT ? current_module() : @__MODULE__
29-
30-
# Need to fix ModuleInterfaceTools to do this!
31-
for mod in (StrRegex, StrLiterals), grp in (:modules, :public, :public!)
32-
m_eval(curmod, Expr( :export, getfield(m_eval(mod, :__api__), grp)...))
33-
end
27+
@api reexport StrRegex, StrLiterals
3428

3529
@api freeze
3630

0 commit comments

Comments
 (0)