Browse Source

Updates to release v4.2.9 fixes #541

Kartik Visweswaran 9 years ago
parent
commit
c2bcd1da38
4 changed files with 10 additions and 3 deletions
  1. 4 2
      CHANGE.md
  2. 5 0
      composer.json
  3. 1 1
      js/fileinput.js
  4. 0 0
      js/fileinput.min.js

+ 4 - 2
CHANGE.md

@@ -3,10 +3,12 @@ Change Log: `bootstrap-fileinput`
 
 
 ## version 4.2.9
 ## version 4.2.9
 
 
-**Date:** 23-Dec-2015
+**Date:** 19-Jan-2016
 
 
 1. (enh #521): Update Dutch Translations.
 1. (enh #521): Update Dutch Translations.
-2. (enh #530): Error alert box and preview thumbnail styling enhancements .
+2. (enh #530): Error alert box and preview thumbnail styling enhancements.
+3. (enh #531): Enhance/Fix typos of Arabic translation.
+4. (enh #541): Improve default slug callback to accept most characters.
 
 
 ## version 4.2.8
 ## version 4.2.8
 
 

+ 5 - 0
composer.json

@@ -15,5 +15,10 @@
         "psr-4": {
         "psr-4": {
             "kartik\\plugins\\fileinput\\": ""
             "kartik\\plugins\\fileinput\\": ""
         }
         }
+    },
+    "extra": {
+        "branch-alias": {
+            "dev-master": "4.2.x-dev"
+        }
     }
     }
 }
 }

+ 1 - 1
js/fileinput.js

@@ -2017,7 +2017,7 @@
             }
             }
         },
         },
         slugDefault: function (text) {
         slugDefault: function (text) {
-            return isEmpty(text) ? '' : text.split(/(\\|\/)/g).pop().replace(/[^\w\u00C0-\u017F\-.\\\/ ]+/g, '');
+            return isEmpty(text) ? '' : String(text).replace(/[\-\[\]\/\{}\(\)\*\+\?\.\\\^\$\|<>&"']/g, '_');
         },
         },
         readFiles: function (files) {
         readFiles: function (files) {
             this.reader = new FileReader();
             this.reader = new FileReader();

File diff suppressed because it is too large
+ 0 - 0
js/fileinput.min.js


Some files were not shown because too many files changed in this diff