Skip to content

Commit 2786523

Browse files
Ensure there's no extra whitespace on generated zip file names
1 parent 42bc29e commit 2786523

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gruntfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ module.exports = function ( grunt ) {
22
// Load all Grunt plugins.
33
require( 'load-grunt-tasks' )( grunt );
44

5-
const pluginVersion = grunt.file.read( '.version' );
5+
// Trim whitespace and newlines from pluginVersion.
6+
const pluginVersion = grunt.file.read( '.version' ).trim();
67

78
const options = {
89
plugin_slug:

0 commit comments

Comments
 (0)