Commit 57a64be7 authored by Chris Rebert's avatar Chris Rebert
Browse files

Minor fix to Glyphicons data generator

parent 96e108f2
Showing with 1 addition and 1 deletion
+1 -1
...@@ -14,7 +14,7 @@ module.exports = function generateGlyphiconsData(grunt) { ...@@ -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';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment