Skip to content

Commit 9f9bce7

Browse files
committed
extconf: fix regexps for use-system-libraries
1 parent 4b4e65a commit 9f9bce7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/rugged/extconf.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ def self.run_cmake(timeout, args)
7171
major = minor = nil
7272

7373
File.readlines(File.join(LIBGIT2_DIR, "include", "git2", "version.h")).each do |line|
74-
if !major && (matches = line.match(/^#define LIBGIT2_VER_MAJOR ([0-9]+)$/))
74+
if !major && (matches = line.match(/^#define LIBGIT2_VER_MAJOR\s+([0-9]+)$/))
7575
major = matches[1]
7676
next
7777
end
7878

79-
if !minor && (matches = line.match(/^#define LIBGIT2_VER_MINOR ([0-9]+)$/))
79+
if !minor && (matches = line.match(/^#define LIBGIT2_VER_MINOR\s+([0-9]+)$/))
8080
minor = matches[1]
8181
next
8282
end

0 commit comments

Comments
 (0)