MCPcopy
hub / github.com/postcss/autoprefixer / replace

Method replace

lib/value.js:109–111  ·  view source on GitHub ↗

* Add prefix to values in string

(string, prefix)

Source from the content-addressed store, hash-verified

107 * Add prefix to values in string
108 */
109 replace(string, prefix) {
110 return string.replace(this.regexp(), `$1${prefix}$2`)
111 }
112
113 /**
114 * Get value with comments if it was not changed

Callers 14

addMethod · 0.95
otherPrefixesMethod · 0.45
unprefixedFunction · 0.45
prefixFunction · 0.45
saveMethod · 0.45
addMethod · 0.45
pluginFunction · 0.45
utils.jsFile · 0.45
processMethod · 0.45
universalizerFunction · 0.45
value.test.jsFile · 0.45
selector.test.jsFile · 0.45

Calls 1

regexpMethod · 0.95

Tested by 2

universalizerFunction · 0.36
oldFunction · 0.36