Skip to content

Commit ff54a41

Browse files
authored
Merge pull request #12 from glennj/UUID-validation-for-bash
Fix UUID validity check for bash. Closes #9.
2 parents c29730c + a83ef56 commit ff54a41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function _src_track() {
8686

8787
# Tests whether the given string is a valid UUID or not.
8888
function _is_uuid() {
89-
[[ "$1" =~ '^[a-z0-9]{32}$' ]]
89+
[[ "$1" =~ ^[[:xdigit:]]{32}$ ]]
9090
}
9191

9292
# Public function.

0 commit comments

Comments
 (0)