diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2013-10-07 18:24:02 -0400 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2013-10-07 18:24:02 -0400 |
commit | fc4ff9315d3102f9b216783061d00a2702555bd9 (patch) | |
tree | a0a2bb5a09e80f363815c37ae9ab62892cc23a2b /build/release-notes.js | |
parent | fea6904d4621df360f556ac73e9a87fdd6eeb7ea (diff) | |
download | jquery-fc4ff9315d3102f9b216783061d00a2702555bd9.tar.gz jquery-fc4ff9315d3102f9b216783061d00a2702555bd9.zip |
Add bower install script and release scripts to jshint and pass lint
Diffstat (limited to 'build/release-notes.js')
-rw-r--r-- | build/release-notes.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/build/release-notes.js b/build/release-notes.js index ae50f2dc0..37e9f9a32 100644 --- a/build/release-notes.js +++ b/build/release-notes.js @@ -3,10 +3,8 @@ * jQuery Release Note Generator */ -var fs = require("fs"), - http = require("http"), +var http = require("http"), extract = /<a href="\/ticket\/(\d+)" title="View ticket">(.*?)<[^"]+"component">\s*(\S+)/g, - categories = [], version = process.argv[2]; if ( !/^\d+\.\d+/.test( version ) ) { @@ -27,13 +25,12 @@ http.request({ }); res.on( "end", function() { - var match, - file = data.join(""), - cur; + var match, cur, cat, + file = data.join(""); while ( (match = extract.exec( file )) ) { if ( "#" + match[1] !== match[2] ) { - var cat = match[3]; + cat = match[3]; if ( !cur || cur !== cat ) { if ( cur ) { |