feat #429, allowing pattern to behave as input pattern when inputPattern...

Allowing pattern to behave as inputPattern when inputPattern is not defined.