aboutsummaryrefslogtreecommitdiff
path: root/js/lib/NJUtils.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/NJUtils.js')
-rwxr-xr-xjs/lib/NJUtils.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/lib/NJUtils.js b/js/lib/NJUtils.js
index d6548871..56c74b3b 100755
--- a/js/lib/NJUtils.js
+++ b/js/lib/NJUtils.js
@@ -206,6 +206,8 @@ exports.NJUtils = Object.create(Object.prototype, {
206 ///// Return the last part of a path (e.g. filename) 206 ///// Return the last part of a path (e.g. filename)
207 getFileNameFromPath : { 207 getFileNameFromPath : {
208 value: function(path) { 208 value: function(path) {
209 path = path.replace(/[/\\]$/g,"");
210 path = path.replace(/\\/g,"/");
209 return path.substr(path.lastIndexOf('/') + 1); 211 return path.substr(path.lastIndexOf('/') + 1);
210 } 212 }
211 } 213 }