diff --git a/package.json b/package.json index ec4bd3f..c343798 100644 --- a/package.json +++ b/package.json @@ -11,15 +11,15 @@ "license": "MIT", "devDependencies": { "babel-cli": "^6.10.1", - "babel-jest": "^12.1.0", + "babel-jest": "^20.0.3", "babel-plugin-transform-react-jsx": "^6.8.0", "babel-polyfill": "^6.9.1", "babel-preset-es2015": "^6.9.0", "babel-preset-react": "^6.5.0", - "eslint": "^2.12.0", - "eslint-plugin-react": "^5.1.1", + "eslint": "^4.1.1", + "eslint-plugin-react": "^7.1.0", "i18nliner": "~0.2.1", - "jest-cli": "^12.1.1", + "jest-cli": "^20.0.4", "react": "^15.0.0", "react-addons-test-utils": "^15.1.0", "react-dom": "^15.1.0" diff --git a/util/escapeRegExp.js b/util/escapeRegExp.js index b082b19..e5bc5c8 100644 --- a/util/escapeRegExp.js +++ b/util/escapeRegExp.js @@ -1,3 +1,3 @@ module.exports = function(str) { - return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); + return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&"); };