diff --git a/index.js b/index.js index 404d8f0..4c10b8b 100644 --- a/index.js +++ b/index.js @@ -15,7 +15,7 @@ const skipModels = new Set(['gray']); const styles = Object.create(null); function escapeStringRegexp(str) { - return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); + return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); } function applyOptions(obj, options = {}) {