Skip to content

Commit

Permalink
Updated method to check if the string starts with component:// instea…
Browse files Browse the repository at this point in the history
…d of merely containing it.
  • Loading branch information
dixitdeepak committed Sep 6, 2024
1 parent 1c94327 commit f044a7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ public static boolean isUrl(String s) {
* @return true if s contains :// and not "component://"
*/
public static boolean urlInString(String s) {
if (isEmpty(s) || s.contains("component://")) {
if (isEmpty(s) || s.startsWith("component://")) {
return false;
}
return s.indexOf("://") != -1;
Expand Down

0 comments on commit f044a7e

Please sign in to comment.