psyche commited on
Commit
e818d15
1 Parent(s): 5b2a231
Files changed (1) hide show
  1. kowiki.py +1 -0
kowiki.py CHANGED
@@ -56,6 +56,7 @@ def replace_link(text):
56
  def remove_double_bracket_text(text):
57
  text = re.sub("\{\{([^|\{\}]+)\}\}", "\\1", text)
58
  text = re.sub("\{\{ll?ang\|[a-z]+\|([^\{\}]+)\}\}", "\\1", text)
 
59
  #text = re.sub("\{\{[^\{\}]+\|([^\{\}]+)\}\}" , "\\1", text)
60
  #text = re.sub("\{\{[^\}]+\|([0-9]\=[^\}]+)\}\}", "'\\1'", text)
61
  #text = re.sub("\{\{[^\}]+\|([^\}]+)\}\}", "\\1", text)
 
56
  def remove_double_bracket_text(text):
57
  text = re.sub("\{\{([^|\{\}]+)\}\}", "\\1", text)
58
  text = re.sub("\{\{ll?ang\|[a-z]+\|([^\{\}]+)\}\}", "\\1", text)
59
+ text = re.sub("\{\{[^\=]+\|([^\=\{\}]+)\}\}", "\\1", text)
60
  #text = re.sub("\{\{[^\{\}]+\|([^\{\}]+)\}\}" , "\\1", text)
61
  #text = re.sub("\{\{[^\}]+\|([0-9]\=[^\}]+)\}\}", "'\\1'", text)
62
  #text = re.sub("\{\{[^\}]+\|([^\}]+)\}\}", "\\1", text)