Bug Tracker

Ticket #2836: jquery.autocomplete.js.diff

File jquery.autocomplete.js.diff, 0.5 kB (added by garrettmoon, 8 months ago)

jquery.autocomplete.js diff

  • (a) jquery.autocomplete.js vs. (b) (clipboard)

    a b  
    218218         
    219219        var currentValue = $input.val(); 
    220220         
     221        if (options.allowedChars != ''){ 
     222            var reg = new RegExp('[^' + options.allowedChars + ']', 'g'); 
     223            currentValue = currentValue.replace(reg, ''); 
     224        } 
     225         
    221226        if ( !skipPrevCheck && currentValue == previousValue ) 
    222227            return; 
    223228         
     
    382398    formatMatch: null, 
    383399    autoFill: false, 
    384400    width: 0, 
     401    allowedChars: '', 
    385402    multiple: false, 
    386403    multipleSeparator: ", ", 
    387404    highlight: function(value, term) {