grunt-webfont icon indicating copy to clipboard operation
grunt-webfont copied to clipboard

Actually it's not possible use as font name a name with dots (font.name) with hashes option

Open Pinco92 opened this issue 9 years ago • 2 comments

Actually it's not possible use as font name a name with dots (font.name) with hashes option true because the regular expression that put hash will match the first dot so the result will be "font.name?hash.extension". A possible solution is to change the regex in webfont.js on line 561: url = url.replace(/(.\w+)/, '$1?' + o.hash); in url = url.replace(/(.\w+(?!.))/, '$1?' + o.hash);

Pinco92 avatar Jul 07 '15 10:07 Pinco92

+1

robertlevy avatar Jul 10 '15 15:07 robertlevy

+1 with fontFilename

artursopelnik avatar Apr 06 '17 10:04 artursopelnik