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 substr tpl func's int type variant issue #1194

Closed

Commits on Jun 6, 2015

  1. Fix substr tpl func's int type variant issue

    `substr` template function takes one or two range arguments. Both
    arguments must be int type values but if it is used with a calclation
    function e.g. `add`, `len` etc, it causes a wrong type error.
    
    This fixes the issue to allow the function to take other integer type
    variant like `int64` etc.
    
    This also includes a small fix on no range argument case.
    
    Fix gohugoio#1190
    tatsushid committed Jun 6, 2015
    Configuration menu
    Copy the full SHA
    0d35525 View commit details
    Browse the repository at this point in the history