MCPcopy Index your code
hub / github.com/darkreader/darkreader / isConstructedColorVar

Function isConstructedColorVar

src/inject/dynamic-theme/variables.ts:752–757  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

750}
751
752function isConstructedColorVar(value: string) {
753 return (
754 value.match(/^\s*(rgb|hsl)a?\(/) ||
755 value.match(/^(((\d{1,3})|(var\([\-_A-Za-z0-9]+\))),?\s*?){3}$/)
756 );
757}
758
759function isFallbackResolved(modified: string) {
760 if (modified.startsWith('var(') && modified.endsWith(')')) {

Callers 2

addModifiedValueMethod · 0.85
inspectVariableMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected