Revert "Update pattern.c"

This reverts commit e8e2865d4263ab3bcbfe24bee071341a205fcf73.
Revert "Update pattern.c"

This reverts commit a00a908c8a7d9816956772bbf3a74ce8dee6ac96.