diff --git a/checkversion b/checkversion index 49b6078..3ad9b8f 100755 --- a/checkversion +++ b/checkversion @@ -155,7 +155,8 @@ function develversion_check() { if [[ -d "$package_rootdir/$pkg" ]]; then # Find the current pkgver() of the package in the AUR package_version=$(pacaur -i "$pkg" \ - | egrep "^Version" \ + | sed -r 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g' \ + | egrep '^Version' \ | sed 's|^[^:]*: ||;s|-[0-9]*$||') pkgbuild_file="$package_rootdir/$pkg/PKGBUILD"