summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/DhMakeELPA/Command/Packaging.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/DhMakeELPA/Command/Packaging.pm b/lib/DhMakeELPA/Command/Packaging.pm
index 815a19a..417a006 100644
--- a/lib/DhMakeELPA/Command/Packaging.pm
+++ b/lib/DhMakeELPA/Command/Packaging.pm
@@ -208,7 +208,7 @@ sub extract_version {
if ( -f $self->main_file("$bin.el") ) {
my $fh = $self->_file_r("$bin.el");
while (my $line = $fh->getline) {
- if ( $line =~ /^;; (Package-)*Version: ([0-9.]*)$/ ) {
+ if ( $line =~ /^;; (Package-)*Version\s*:\s+([0-9.a-zA-Z~+-]*)$/ ) {
$version = "$2";
last;
}
@@ -218,7 +218,7 @@ sub extract_version {
} elsif ( -f $self->main_file("$bin-pkg.el") ) {
my $fh = $self->_file_r("$bin-pkg.el");
while (my $line = $fh->getline) {
- if ( $line =~ /.*\(define-package\s+"[^"]+"\s+"([0-9.]*)"/ ) {
+ if ( $line =~ /.*\(define-package\s+"[^"]+"\s+"([0-9.a-zA-Z~+-]*)"/ ) {
$version = "$1";
last;
}