Shivaram Lingamneni пре 5 година
родитељ
комит
3c267d1000
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3
    3
      updatetranslations.py

+ 3
- 3
updatetranslations.py Прегледај датотеку

97
 
97
 
98
                     matches = re.findall(r'\`([^\`]+)\`', content)
98
                     matches = re.findall(r'\`([^\`]+)\`', content)
99
                     for match in matches:
99
                     for match in matches:
100
-                        if '\n' in match and match not in help_strings:
100
+                        if match not in help_strings:
101
                             help_strings.append(match)
101
                             help_strings.append(match)
102
 
102
 
103
         print("nickserv help strings:", len(help_strings))
103
         print("nickserv help strings:", len(help_strings))
120
 
120
 
121
                     matches = re.findall(r'\`([^\`]+)\`', content)
121
                     matches = re.findall(r'\`([^\`]+)\`', content)
122
                     for match in matches:
122
                     for match in matches:
123
-                        if '\n' in match and match not in help_strings:
123
+                        if match not in help_strings:
124
                             help_strings.append(match)
124
                             help_strings.append(match)
125
 
125
 
126
         print("chanserv help strings:", len(help_strings))
126
         print("chanserv help strings:", len(help_strings))
143
 
143
 
144
                     matches = re.findall(r'\`([^\`]+)\`', content)
144
                     matches = re.findall(r'\`([^\`]+)\`', content)
145
                     for match in matches:
145
                     for match in matches:
146
-                        if '\n' in match and match not in help_strings:
146
+                        if match not in help_strings:
147
                             help_strings.append(match)
147
                             help_strings.append(match)
148
 
148
 
149
         print("hostserv help strings:", len(help_strings))
149
         print("hostserv help strings:", len(help_strings))

Loading…
Откажи
Сачувај