feat #429, allowing pattern to behave as input pattern when inputPattern is not defined