This feels dangerous enough to me that it may be worth using a real JS parser (or lexer) since you don't want to change the word "require" if it appears in a string or as an object key.

```
'DOMProperty: Cannot use muffin using both attribute and property: %s'
```