Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-4194

Inconsistent behavior when escaping "-" symbols

    XMLWordPrintable

Details

    • Unit
    • Unknown

    Description

      This is a strange problem, take a look at following two test cases:

      Test-1: This one passes

      .#-----------------------------------------------------
      .input|xwiki/2.0
      .#-----------------------------------------------------
      ~-~-verbose **replace** 'ftp://afp'
      .#-----------------------------------------------------
      .expect|xwiki/2.0
      .#-----------------------------------------------------
      ~-~-verbose **replace** 'ftp://afp'
      

      Test-1: This one fails

      .#-----------------------------------------------------
      .input|xwiki/2.0
      .#-----------------------------------------------------
      ~-~-verbose 'ftp://afp'
      .#-----------------------------------------------------
      .expect|xwiki/2.0
      .#-----------------------------------------------------
      ~-~-verbose 'ftp://afp'
      

      I tried to reduce the problem scope as much as possible but this is all what I could come up with.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            asiri Asiri Rathnayake
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: