Fixed preprocess function of jquery.patterns.js