]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Minor fix to Glyphicons data generator
authorChris Rebert <code@rebertia.com>
Tue, 30 Dec 2014 01:00:04 +0000 (17:00 -0800)
committerChris Rebert <code@rebertia.com>
Tue, 30 Dec 2014 01:00:44 +0000 (17:00 -0800)
grunt/bs-glyphicons-data-generator.js

index 82dc727b6fec6cd3ad6fd3f2ce3dee7fea191514..339fd0ffed8ef501fed0cdb6ee1fc2879e09364f 100644 (file)
@@ -14,7 +14,7 @@ module.exports = function generateGlyphiconsData(grunt) {
   var glyphiconsLines = glyphiconsFile.split('\n');
 
   // Use any line that starts with ".glyphicon-" and capture the class name
-  var iconClassName = /^\.(glyphicon-[^\s]+)/;
+  var iconClassName = /^\.(glyphicon-[a-zA-Z0-9-]+)/;
   var glyphiconsData = '# This file is generated via Grunt task. **Do not edit directly.**\n' +
                        '# See the \'build-glyphicons-data\' task in Gruntfile.js.\n\n';
   var glyphiconsYml = 'docs/_data/glyphicons.yml';