Skip to content

Commit

Permalink
chore(platform_interface): Fixed the trailing dot warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyost committed Jan 28, 2024
1 parent acb4cc5 commit 0f2698f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class BonsoirServiceNormalizer {
result.replaceAll(RegExp(r'[\x00-\x1F\x7F]'), '');

// On some platforms (eg. Windows), services name are not correctly handled if they're ending with a dot.
if (name.endsWith(name)) {
if (name.endsWith('.')) {
if (kDebugMode) {
print("It seems that you've provided a service name ending with a dot : $name.");
print("Note that it's not correctly handled on all platforms (eg. Windows).");
Expand Down

0 comments on commit 0f2698f

Please sign in to comment.