Skip to content

Commit b60f5ee

Browse files
author
MomIsBestFriend
committed
Imporved test case in 'strings_with_wrong_placed_space' validation type
1 parent 68c79d1 commit b60f5ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/validate_string_concatenation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ def strings_with_wrong_placed_space(
122122
first_string = first_token[1][1:-1]
123123
second_string = third_token[1][1:-1]
124124

125-
if (not first_string.endswith(" ")) and (second_string.startswith(" ")):
125+
if ((not first_string.endswith(" ")) and second_string.startswith(" ")) and (
126+
not second_string.startswith(" ")
127+
):
126128
yield (
127129
source_path,
128130
third_token[2][0],

0 commit comments

Comments
 (0)