Skip to content
Permalink
Browse files

👨‍🔧 | ve \| farkından kaynaklanan sorun giderildi

  • Loading branch information
yedhrab committed Jan 10, 2020
1 parent 98d0102 commit d44aa648c633ba55d898c2a46b66262636b9cdfd
Showing with 7 additions and 3 deletions.
  1. +7 −3 name-generator.py
@@ -83,14 +83,18 @@ def renew(path, lvl):
lesson_header = read_first_header(lesson_path) lesson_header = read_first_header(lesson_path)
lesson_header = lesson_header[lesson_header.find(" ") + 1:] # Emojiyi kaldırma lesson_header = lesson_header[lesson_header.find(" ") + 1:] # Emojiyi kaldırma


index = None
for regex in [r' \| ', r" | "]:
if regex in header:
index = header.find(regex)

header = header[:index]

pattern = "" pattern = ""
for name in lesson_header.split(" "): for name in lesson_header.split(" "):
pattern += name[0] pattern += name[0]


pattern = r" \| " + pattern pattern = r" \| " + pattern
if r" \| " in header:
header = header[:header.find(r" \| ")]

header += pattern header += pattern


filestr = "" filestr = ""

0 comments on commit d44aa64

Please sign in to comment.
You can’t perform that action at this time.