fix documentation update
This commit is contained in:
parent
e55e503654
commit
1a2f051bdd
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ def update(config_jsonc='config.jsonc', base='config.pandora.jsonc'):
|
|||
current_docs = get(config_jsonc)
|
||||
for key in docs:
|
||||
if key in current_docs:
|
||||
match = '\n' + re.escape(' '+docs[key]) + '\W+"' + re.escape(key) + '":'
|
||||
match = '\n' + re.escape(' ' + current_docs[key]) + '\W+"' + re.escape(key) + '":'
|
||||
else:
|
||||
match = '\n "' + re.escape(key) + '":'
|
||||
data = re.sub(match, '\n %s\n "%s":' % (docs[key], key), data)
|
||||
|
|
Loading…
Reference in a new issue