Browse Source

fix #407

tags/v1.1.0-rc1
Shivaram Lingamneni 5 years ago
parent
commit
3c267d1000
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      updatetranslations.py

+ 3
- 3
updatetranslations.py View File

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

Loading…
Cancel
Save