summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/chrono-node/src/refiners/UnlikelyFormatFilter.js
blob: 60ea106fbcd476e7e1b319dfd49ac56e30f6ecee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
  
*/
var Filter = require('./refiner').Filter;

exports.Refiner = function UnlikelyFormatFilter() {
    Filter.call(this);
    

    this.isValid = function(text, result, opt) { 

        if (result.text.replace(' ','').match(/^\d*(\.\d*)?$/)) {
            return false;
        }

        return true; 
    }
}