Skip to content

Commit

Permalink
fixed regex error on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fk128 committed Oct 2, 2014
1 parent e6839bb commit faad652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def find_notes(self, root):
for ext in settings().get("note_file_extensions"):
if (not relpath.startswith(".brain")) and fnmatch.fnmatch(name, "*." + ext):
title = re.sub('\.' + ext + '$', '', name)
tag = re.sub(root, '', path)
tag = path.replace(root, '')
tag = re.sub('/', '', tag)
note_files.append((re.sub('\.' + ext + '$', '', tag + ": " + title),
os.path.join(path, name),
Expand Down

0 comments on commit faad652

Please sign in to comment.