summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-18 07:28:11 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-18 07:28:11 -0400
commit66de7e3055ac2437d760f133c613e3169d2ba706 (patch)
treee24368772506329baac4e3389ca6475ff9fb80f7 /src/textual.cc
parenta961f15f0004d55ea0a22a643d12a09930829974 (diff)
downloadfork-ledger-66de7e3055ac2437d760f133c613e3169d2ba706.tar.gz
fork-ledger-66de7e3055ac2437d760f133c613e3169d2ba706.tar.bz2
fork-ledger-66de7e3055ac2437d760f133c613e3169d2ba706.zip
Filename globs now surrounded by ^$
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 828a093d..3238c55b 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -715,10 +715,10 @@ void instance_t::include_directive(char * line)
mask_t glob;
#if BOOST_VERSION >= 103700
path parent_path = filename.parent_path();
- glob.assign_glob(filename.filename());
+ glob.assign_glob('^' + filename.filename() + '$');
#else // BOOST_VERSION >= 103700
path parent_path = filename.branch_path();
- glob.assign_glob(filename.leaf());
+ glob.assign_glob('^' + filename.leaf() + '$');
#endif // BOOST_VERSION >= 103700
bool files_found = false;