CSS font-face rules for embedded webfonts (base64-encoded woff/woff2)
var FONTFACE_PATTERN = /(?:^|)(?:(?<=(?:font-family[:] ?))'"['"]|(?<=(?:font-weight[:])) ?(.+?)|(?<=(?:font-style[:])) ?(.+?)|(?<=src: ?url[(])(?:['"]?data:(.+?);,[,])(.+?)(?:['"]?[)])(?:[\n\s ]?format((\S+)'"])?)(?:;)(?:|$)/mdg
Rudimentary pattern for matching base64-embedded webfonts in CSS style...
Submitted by Nicholas Berlette (@nberlette) - 2 years ago