summaryrefslogtreecommitdiffstats
path: root/sitestatic
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-03-09 17:12:40 +0100
committerDan McGee <dan@archlinux.org>2014-03-09 17:12:40 +0100
commit81a2051e346bb41fb9756695566f735d5035bfd8 (patch)
treeacd0a47ca9b50f20df5a3ed7675489b008bfdc6b /sitestatic
parente395bef7241a71cd72d24362bf233251746c8c8b (diff)
downloadarchweb-81a2051e346bb41fb9756695566f735d5035bfd8.tar.gz
archweb-81a2051e346bb41fb9756695566f735d5035bfd8.tar.xz
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')
-rw-r--r--sitestatic/archweb.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/sitestatic/archweb.js b/sitestatic/archweb.js
index 800c5ad..209d6f6 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);
},