JBehave
  1. JBehave
  2. JBEHAVE-784

Parser skips lines from story, if keyword is separated from text without space char.

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5.4
    • Fix Version/s: 3.6.8, 3.7
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Given aaa bbb ccc
      And<TAB><TAB>ddd eee
      Then fff

      Line staring with "And" is skipped if there is no space character between "And" and "ddd".

      Probable fix: RegexStoryParser.java:239
      "((" + initialStartingWords + ") (.)?)\\s(
      Z|" + followingStartingWords + "|
      n"
      ==>
      "((" + initialStartingWords + ")\\s(.)?)\\s(
      Z|" + followingStartingWords + "|
      n"

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Summary JBehave 3.5.4 skips lines from story, if keyword is separated from text without space char. Parser skips lines from story, if keyword is separated from text without space char.
        Assignee Mauro Talevi [ maurotalevi ]
        Fix Version/s 3.6.8 [ 18557 ]
        Affects Version/s 3.5.4 [ 18081 ]
        Affects Version/s web-3.5 [ 17722 ]
        Hide
        Mauro Talevi added a comment -

        Applied patch with thanks.

        Show
        Mauro Talevi added a comment - Applied patch with thanks.
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Mauro Talevi made changes -
        Fix Version/s 3.7 [ 18390 ]

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            mrJojo
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: