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

String replace method fails with regexp /$/gi

XMLWordPrintable

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

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

      Should return 'dogs'

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

              Created:
              Updated:
              Resolved: