Added class detection to conditions of jquery.patterns.js