nuxt-i18n
Advanced tools
Comparing version 2.3.4 to 2.4.1
@@ -5,2 +5,17 @@ # Change Log | ||
<a name="2.4.1"></a> | ||
## [2.4.1](https://github.com/nuxt-community/nuxt-i18n/compare/v2.4.0...v2.4.1) (2018-03-10) | ||
<a name="2.4.0"></a> | ||
# [2.4.0](https://github.com/nuxt-community/nuxt-i18n/compare/v2.3.4...v2.4.0) (2018-03-10) | ||
### Features | ||
* Add support for Regexp for ignorePaths option ([65f8b45](https://github.com/nuxt-community/nuxt-i18n/commit/65f8b45)), closes [#38](https://github.com/nuxt-community/nuxt-i18n/issues/38) | ||
<a name="2.3.4"></a> | ||
@@ -7,0 +22,0 @@ ## [2.3.4](https://github.com/nuxt-community/nuxt-i18n/compare/v2.3.3...v2.3.4) (2018-02-25) |
@@ -27,3 +27,7 @@ const { has } = require('lodash') | ||
baseRoutes.forEach(route => { | ||
if (ignorePaths.indexOf(route.path) !== -1) { | ||
const isIgnoredPath = (ignorePaths.findIndex(pattern => { | ||
const regexp = new RegExp(pattern) | ||
return route.path.match(regexp) | ||
}) !== -1) | ||
if (isIgnoredPath) { | ||
newRoutes.push(route) | ||
@@ -30,0 +34,0 @@ } else { |
{ | ||
"name": "nuxt-i18n", | ||
"version": "2.3.4", | ||
"version": "2.4.1", | ||
"description": "i18n for Nuxt", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
30232
321