From 3c267d1000396bf53a155774c754353814c14263 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Wed, 29 May 2019 05:11:29 -0400 Subject: [PATCH] fix #407 --- updatetranslations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/updatetranslations.py b/updatetranslations.py index 6da3cef7..206f04dc 100755 --- a/updatetranslations.py +++ b/updatetranslations.py @@ -97,7 +97,7 @@ if __name__ == '__main__': matches = re.findall(r'\`([^\`]+)\`', content) for match in matches: - if '\n' in match and match not in help_strings: + if match not in help_strings: help_strings.append(match) print("nickserv help strings:", len(help_strings)) @@ -120,7 +120,7 @@ if __name__ == '__main__': matches = re.findall(r'\`([^\`]+)\`', content) for match in matches: - if '\n' in match and match not in help_strings: + if match not in help_strings: help_strings.append(match) print("chanserv help strings:", len(help_strings)) @@ -143,7 +143,7 @@ if __name__ == '__main__': matches = re.findall(r'\`([^\`]+)\`', content) for match in matches: - if '\n' in match and match not in help_strings: + if match not in help_strings: help_strings.append(match) print("hostserv help strings:", len(help_strings))