Skip to content
This repository was archived by the owner on Jan 22, 2020. It is now read-only.

Commit 3a4aa11

Browse files
committed
fix(maker): filename can contain nested directories
1 parent c7d3ffa commit 3a4aa11

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/livingdocs/maker.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ def __init__(self, section):
1616

1717
def fix_filename(self, s):
1818
parts = s.split('/')
19-
filename = parts[1]
20-
keyname = filename.split('.')[0]
21-
return 'feature/%s' % keyname
19+
for p in parts:
20+
if '.' in p:
21+
return 'feature/%s' % p.split('.')[0]
22+
2223

2324
def start_feature(self, context, feature):
2425
# beginning a feature. we should begine a file for this

0 commit comments

Comments
 (0)