Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-5774

Kotlin extensions: Allow usage of `regex` for non-string properties

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Kotlin
    • None
    • None
    • Java Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      While it makes some sense to only allow the `regex` function on String properties, this also precludes using it with properties that wrap the String in a value class.

      To allow for that use case, I think it would make sense to relax the property type and allow anything there.

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            jens.suhr@dreamit.de Jens Suhr
            None
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None