From 57a64be74970a6652b65168ebc7dd88c7f9093d8 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 29 Dec 2014 17:00:04 -0800 Subject: [PATCH] Minor fix to Glyphicons data generator --- grunt/bs-glyphicons-data-generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grunt/bs-glyphicons-data-generator.js b/grunt/bs-glyphicons-data-generator.js index 82dc727b6f..339fd0ffed 100644 --- a/grunt/bs-glyphicons-data-generator.js +++ b/grunt/bs-glyphicons-data-generator.js @@ -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'; -- 2.47.2