1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-20 04:11:39 +02:00

Minor fix to Glyphicons data generator

This commit is contained in:
Chris Rebert
2014-12-29 17:00:04 -08:00
parent 96e108f2b2
commit 57a64be749

View File

@@ -14,7 +14,7 @@ module.exports = function generateGlyphiconsData(grunt) {
var glyphiconsLines = glyphiconsFile.split('\n'); var glyphiconsLines = glyphiconsFile.split('\n');
// Use any line that starts with ".glyphicon-" and capture the class name // 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' + 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'; '# See the \'build-glyphicons-data\' task in Gruntfile.js.\n\n';
var glyphiconsYml = 'docs/_data/glyphicons.yml'; var glyphiconsYml = 'docs/_data/glyphicons.yml';