bridge.pipelines.utils.comparisons module

bridge.pipelines.utils.comparisons module#

Utility functions for comparisons.

bridge.pipelines.utils.comparisons.str_contain_each_other(str1, str2)[source]#

Check if two strings contain each other (case-insensitive).

Parameters:
  • str1 (str) – First string.

  • str2 (str) – Second string.

Returns:

True if either string contains the other, False otherwise.

Return type:

bool