Opens an URL if one has been found in given input String. @param input The input String that should be matched to the URL-Regex.
(String input)
| 438 | * @param input The input String that should be matched to the URL-Regex. |
| 439 | */ |
| 440 | public static void openURLIfFound(String input) { |
| 441 | List<String> matchedURLs = matchURL(input); |
| 442 | if (matchedURLs.isEmpty()) |
| 443 | return; |
| 444 | for (String matchedURL : matchedURLs) { |
| 445 | openURL(matchedURL); |
| 446 | } |
| 447 | } |
| 448 | |
| 449 | /** |
| 450 | * Returns a List with all URLs that could been matched from given input String. |
no test coverage detected