Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix misplaced regexp flags arguments #2730

Merged
merged 2 commits into from Apr 20, 2017
Merged

Fix misplaced regexp flags arguments #2730

merged 2 commits into from Apr 20, 2017

Commits on Apr 19, 2017

  1. Fix misplaced flags argument in re.sub() calls

    The 4th argument of re.sub() is maximum number of substitutions,
    not flags.
    jwilk committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    225e73a View commit details
    Browse the repository at this point in the history
  2. Compile _slugify_*_re with re.UNICODE flag

    Regular expression flags cannot be passed in the sub() method.
    They have to bet set at compile time.
    jwilk committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    903ec5e View commit details
    Browse the repository at this point in the history