indexOf, lastIndexOf methods work incorrectly

Bug #1601843 reported by omar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
YAQL
Fix Released
Undecided
omar

Bug Description

yaql> "abcde".indexOf("cd", start=>2, length=>2)
expected result: 2
actual result: -1

the same is about lastIndexOf

omar (oshykhkerimov)
Changed in yaql:
assignee: nobody → omar (oshykhkerimov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to yaql (master)

Fix proposed to branch: master
Review: https://review.openstack.org/340419

Changed in yaql:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to yaql (master)

Reviewed: https://review.openstack.org/340419
Committed: https://git.openstack.org/cgit/openstack/yaql/commit/?id=85780fbcb9ae5f64982bbb25fcc941c70604ec24
Submitter: Jenkins
Branch: master

commit 85780fbcb9ae5f64982bbb25fcc941c70604ec24
Author: Omar Shykhkerimov <email address hidden>
Date: Mon Jul 11 17:53:43 2016 +0300

    Fix "indexOf", "lastIndexOf" methods length parameter usage

    Previously this parameter was processed as if it was "end" parameter.
    This patch fixes it and adds appropriate tests.

    Change-Id: I2094ea63c760342df68c7a6090d48ee8e89bae4d
    Closes-Bug: #1601843

Changed in yaql:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.