MCPcopy
hub / github.com/remotion-dev/remotion / getValue

Function getValue

packages/google-fonts/scripts/extract-info-from-css.ts:3–6  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

1import {unquote} from './utils';
2
3const getValue = (line: string) => {
4 const name = line.match(/\:(.*)\;/)?.[1].trim();
5 return unquote(name as string);
6};
7
8const getUrl = (line: string) => {
9 const name = line.match(/url\((.*?)\)/)?.[1].trim();

Callers 1

parseFontFaceFunction · 0.85

Calls 2

unquoteFunction · 0.90
trimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…