Closed knjk04 closed 5 years ago
The changeHttpToHttps() method in Book.java could be even if the http appears somewhere other than the start of the String. Change the regex so that the string URL is only changed if "http" appears at the start of the String.
Fixed with commit https://github.com/knjk04/Bookshelf/commit/ee86c7e22abf62ba9f9ca59bbb483a9089689f07 by using replaceFirst() instead of replace()
The changeHttpToHttps() method in Book.java could be even if the http appears somewhere other than the start of the String. Change the regex so that the string URL is only changed if "http" appears at the start of the String.