Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8025197

String replace method fails with regexp /$/gi

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b110
    • Verification:
      Verified

      Description

      jjs> 'dog'.replace(/$/gi, 's')
      dogss

      Should return 'dogs'

        Attachments

          Activity

            People

            • Assignee:
              hannesw Hannes Wallnoefer
              Reporter:
              hannesw Hannes Wallnoefer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: