aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/string.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-02-12 09:35:49 +0100
committerBjörn Gustavsson <[email protected]>2013-02-13 11:58:44 +0100
commit3c40105f4666e1c38752a5bbf1c282c221dda967 (patch)
tree0ba4874acff9af56aaa64837a406a96413c14f1d /lib/stdlib/src/string.erl
parentf8b9d04789cb307c519f7c99493ebc9118a2b8c2 (diff)
downloadotp-3c40105f4666e1c38752a5bbf1c282c221dda967.tar.gz
otp-3c40105f4666e1c38752a5bbf1c282c221dda967.tar.bz2
otp-3c40105f4666e1c38752a5bbf1c282c221dda967.zip
Rethink the filelib:wildcard() functions
Commit 70b5e24c9498225fadc08d19503269c8aad851bf broke filelib:wildcard(Pattern, "."). Over the years, the logic for filelib:wilcard() has become a mess of special cases. Probably because of premature optimization, filelib:wildcard(Pattern) and filelib:wildcard(Pattern, Cwd) are handled differently. They can be consolidated if we use a "." as the default Cwd argument. We can also simplify things by compiling the Cwd argument into the wildcard. We did not that in the initial implementation because it used to be possible to pre-compile a wildcard and pass it to filelib:wildcard/{1,2}. Since that is no longer possible, there is no point in keeping the compiled wildcard "portable" (not dependent on the Cwd argument).
Diffstat (limited to 'lib/stdlib/src/string.erl')
0 files changed, 0 insertions, 0 deletions