From 94262efd60aadf8ae0ad0a8a90495f894375f473 Mon Sep 17 00:00:00 2001 From: rlx Date: Sat, 16 Jan 2016 20:45:57 +0530 Subject: [PATCH] fix Ox.formatISBN --- source/Ox/js/Format.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox/js/Format.js b/source/Ox/js/Format.js index b04fb507..52f21d1b 100644 --- a/source/Ox/js/Format.js +++ b/source/Ox/js/Format.js @@ -682,7 +682,7 @@ Ox.formatISBN = function(isbn, length, dashes) { ret.slice(-9, -6), ret.slice(-6, -1), ret.slice(-1) - ].join('-').replace(/^-/, '') : ret; + ].join('-').replace(/^-+/, '') : ret; }; /*@