def configure(self, digits=None, min=None, max=None):
        # Build the correct regex for the length.
        minus = "-?" if min is None or min < 0 else ""
        if digits:
            self.regex = "(%s\d{%d})" % (minus, digits)
        else:
            self.regex = "(%s\d+)" % minus

        self.min = min
        self.max = max
        self.digits = digits
dataset/ETHPy150Open ecdavis/pants/pants/web/application.py/Integer.configure/original