Skip to content

Commit

Permalink
Merge pull request #12 from glennj/UUID-validation-for-bash
Browse files Browse the repository at this point in the history
Fix UUID validity check for bash. Closes #9.
  • Loading branch information
PaulDance authored Feb 16, 2021
2 parents c29730c + a83ef56 commit ff54a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function _src_track() {

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

# Public function.
Expand Down

0 comments on commit ff54a41

Please sign in to comment.