We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e633d9 commit 1edc9d5Copy full SHA for 1edc9d5
1 file changed
pdfScale.sh
@@ -9,7 +9,7 @@
9
# Writen for Bash.
10
#
11
# Gustavo Arnosti Neves - 2016 / 07 / 10
12
-# Latest Version - 2020 / 04 / 04
+# Latest Version - 2023 / 01 / 26
13
14
# This app: https://github.com/tavinus/pdfScale
15
@@ -20,7 +20,7 @@
20
21
################################################################
22
23
-VERSION="2.5.7"
+VERSION="2.5.8"
24
25
26
###################### EXTERNAL PROGRAMS #######################
@@ -2042,7 +2042,7 @@ isFloat() {
2042
2043
# Returns $TRUE if $1 is a floating point number bigger than zero, $FALSE otherwise
2044
isFloatBiggerThanZero() {
2045
- isFloat "$1" && [[ (( $1 > 0 )) ]] && return $TRUE
+ isFloat "$1" && [[ "$1" =~ ^0*[1-9] || "$1" =~ ^0*[.]0*[1-9] ]] && return $TRUE
2046
return $FALSE
2047
}
2048
0 commit comments