Accept RegExp for prefix.js