Make deployment script compatible with newer Java

These include a date in the version string.
diff --git a/deploy-javadoc.sh b/deploy-javadoc.sh
index a58f6a0..0653779 100755
--- a/deploy-javadoc.sh
+++ b/deploy-javadoc.sh
@@ -5,7 +5,7 @@
 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 
 
-JAVA_VERSION=`java -version 2>&1 | sed -n ';s/.* version "\(.*\)\.\(.*\)\..*"/\1\2/p;'`
+JAVA_VERSION=`java -version 2>&1 | sed -n ';s/.* version "\(.*\)\.\(.*\)\..*".*/\1\2/p;'`
 if [ "$JAVA_VERSION" -lt "17" ]; then
   echo "Use Java 1.7+ to generate the Javadoc."
   exit 1