Skip to content

Commit 47caf61

Browse files
fix: trim message
1 parent cfc6f6b commit 47caf61

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/instabug_flutter/lib/src/utils/user_steps/user_step_details.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class UserStepDetails {
7878

7979
if (key != null) baseMessage += " with key '$key' ";
8080

81-
return baseMessage.trim();
81+
return baseMessage.trimRight();
8282
}
8383

8484
String? _getWidgetSpecificDetails() {

packages/instabug_flutter/test/utils/user_steps/user_step_details_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void main() {
6161

6262
expect(
6363
details.message,
64-
" Container with key 'testKey' ",
64+
" Container with key 'testKey'",
6565
);
6666
});
6767

@@ -113,7 +113,7 @@ void main() {
113113

114114
expect(
115115
details.message,
116-
" Container with key 'testKey' ",
116+
" Container with key 'testKey'",
117117
);
118118
});
119119

0 commit comments

Comments
 (0)