summaryrefslogtreecommitdiff
path: root/sitestatic/archweb.js
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-03-09 11:12:40 -0500
committerDan McGee <dan@archlinux.org>2014-03-09 11:12:40 -0500
commit81a2051e346bb41fb9756695566f735d5035bfd8 (patch)
treeacd0a47ca9b50f20df5a3ed7675489b008bfdc6b /sitestatic/archweb.js
parente395bef7241a71cd72d24362bf233251746c8c8b (diff)
Allow filesize sorter to match &nbsp; character
This gets the sorter working correctly again on the developer reports pages where we show file sizes. Apparently the Django filesizeformat tag now uses non-breaking spaces. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'sitestatic/archweb.js')
-rw-r--r--sitestatic/archweb.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/sitestatic/archweb.js b/sitestatic/archweb.js
index 800c5add..209d6f67 100644
--- a/sitestatic/archweb.js
+++ b/sitestatic/archweb.js
@@ -103,7 +103,7 @@ if (typeof $ !== 'undefined' && typeof $.tablesorter !== 'undefined') {
$.tablesorter.addParser({
id: 'filesize',
- re: /^(\d+(?:\.\d+)?) (bytes?|[KMGTPEZY]i?B)$/,
+ re: /^(\d+(?:\.\d+)?)[ \u00a0](bytes?|[KMGTPEZY]i?B)$/,
is: function(s) {
return this.re.test(s);
},