(pattern, opts, callback)
| 287 | } |
| 288 | |
| 289 | replaceValues(pattern, opts, callback) { |
| 290 | if (!callback) { |
| 291 | callback = opts |
| 292 | opts = {} |
| 293 | } |
| 294 | |
| 295 | this.walkDecls(decl => { |
| 296 | if (opts.props && !opts.props.includes(decl.prop)) return |
| 297 | if (opts.fast && !decl.value.includes(opts.fast)) return |
| 298 | |
| 299 | decl.value = decl.value.replace(pattern, callback) |
| 300 | }) |
| 301 | |
| 302 | this.markDirty() |
| 303 | |
| 304 | return this |
| 305 | } |
| 306 | |
| 307 | some(condition) { |
| 308 | return this.nodes.some(condition) |
no test coverage detected