Skip to content

Commit

Permalink
1.1.1: bugfix release
Browse files Browse the repository at this point in the history
  • Loading branch information
Download committed Nov 3, 2016
1 parent 14e1856 commit 6727b39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions hasTranslatableText.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ var getTranslatePattern = function(config) {
module.exports = function(config) {
var pattern;

config = config || {};
config.autoTranslateTags = typeof config.autoTranslateTags === 'string' ? config.autoTranslateTags.split(',') : config.autoTranslateTags || [];
config.neverTranslateTags = typeof config.neverTranslateTags === 'string' ? config.neverTranslateTags.split(',') : config.neverTranslateTags || [];

return function(source) {
pattern = pattern || getTranslatePattern(config);
return !!source.match(pattern);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "preact-i18nline",
"version": "1.1.0",
"version": "1.1.1",
"description": "Keep your translations in line - with Preact!",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 6727b39

Please sign in to comment.