Shopify/liquid — pull request #161 by dylanahsmith (2012-12-18 06:56:04+00:00)
Title: Fix filter parser regex for filter args without separating spaces.

@BlakeMesdag & @Soleone for review

## Problem

The following valid liquid was being parsed as if it had a single replace filter, so gave a liquid error since the replace filter was being called with 5 arguments instead of 3.

```liquid
{{ product.description | replace:'

[[start tab]]

','
' | replace:'

[[end tab]]

','
' }}
```

## Diagnosis

The regex was using `\S+` to match the comma between the filters arguments, but would continue to match independent quote characters and filter separators. This can result in multiple filters being interpreted as a single one with many arguments.

In this case the `\S+` was matching `,'