aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2012-03-13 23:24:17 -0700
committerIgor Minar2012-03-13 23:24:17 -0700
commitc70ead0aa151c2b769edd51415262e8843d642aa (patch)
treedb70a987760cb26e26e2bb1a0e82fa4f3314b873
parent716b5fd3e24e11986ded2cc381b9fbb77971a1e2 (diff)
downloadangular.js-c70ead0aa151c2b769edd51415262e8843d642aa.tar.bz2
fix(Rakefile): version.dot extractor should ignore 'rc1'
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index a1c3a6ba..b1164382 100644
--- a/Rakefile
+++ b/Rakefile
@@ -20,7 +20,7 @@ task :init do
new(match[1] + (match[2] ? ('-' + %x(git rev-parse HEAD)[0..7]) : ''),
match[1].split('.')[0],
match[1].split('.')[1],
- match[1].split('.')[2],
+ match[1].split('.')[2].sub(/\D+.*$/, ''),
v['codename'])
end