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

String replace method fails with regexp /$/gi

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 8
    • 8
    • core-libs
    • None
    • b110
    • Verified

    Description

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

      Should return 'dogs'

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: