Skip to content

Commit

Permalink
add _set_regexs! to __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
josePereiro committed Jul 7, 2021
1 parent ea37d32 commit e963874
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/DataFileNames.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module DataFileNames
VERSION < v"1.6" && include("compat.jl")

function __init__()
_set_default__SEPS!()
_set_default_SEPS!()
_set_regexs!()
end
end
2 changes: 1 addition & 1 deletion src/globals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# _SEPS
const _SEPS = Dict{Symbol, Char}()

function _set_default__SEPS!()
function _set_default_SEPS!()
empty!(_SEPS)
_SEPS[:EXT_SEP] = '.'
_SEPS[:PAIR_SEP] = '='
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ using Test

# ------------------------------------------
# Use default SEPS (mainly because ext sepataror)
DFN._set_default__SEPS!()
DFN._set_default_SEPS!()

# ------------------------------------------
@info("Testing _hex_escape")
Expand Down

0 comments on commit e963874

Please sign in to comment.