Changeset 13505


Ignore:
Timestamp:
Sep 19, 2012, 5:28:13 AM (9 years ago)
Author:
jordan
Message:

(trunk, web) r13437 regex bugfix by cfpp2p

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/inspector.js

    r13437 r13505  
    619619
    620620            sum = 0
    621             matches = $('#'+parentid).children('li').text().match(/\([^\)]+\)/g)
     621            matches = $('#'+parentid).children('li').text().match(/\([^\.]+\)/g)
    622622            if (matches == null) { continue; }
    623623            matches.map(function(word) {return parseFloat(word.slice(1,-2)) }).map(function(perc) {sum+=perc})
    624             count = $('#'+parentid).children('li').text().match(/\([^\)]+\)/g).length
     624            count = $('#'+parentid).children('li').text().match(/\([^\.]+\)/g).length
    625625            totalcomplete = (sum/count).toFixed(1)
    626626
Note: See TracChangeset for help on using the changeset viewer.