HISE Logo Forum
    • Categories
    • Register
    • Login

    isEmailAddress

    Scheduled Pinned Locked Moved Scripting
    7 Posts 3 Posters 294 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey
      last edited by

      I wanted to check if the user had entered a valid email address and rather than trying to use some crazy regex thing in HISE Script I thought I'd tap into JUCE. So I've added a wrapper function Engine.isEmailAddress().

      It's in my development branch and there is a pull request.

      @Christoph-Hart Is the Engine class the best place for this?

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      1 Reply Last reply Reply Quote 3
      • d.healeyD
        d.healey
        last edited by d.healey

        I see that Christoph merged it earlier today along with a few other pull requests I'd made :)

        A little tip for anyone using this function to validate email addresses before they are used to perform some interaction with a server: You should also perform validation server side, don't trust it to only the client side.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 2
        • Christoph HartC
          Christoph Hart
          last edited by

          Actually the Server class would be better...

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @Christoph Hart
            last edited by

            @Christoph-Hart Good idea

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey
              last edited by

              Done https://github.com/christophhart/HISE/pull/199

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              Dan KorneffD 1 Reply Last reply Reply Quote 0
              • Dan KorneffD
                Dan Korneff @d.healey
                last edited by

                @d-healey Could you make a little video on it's implementation and uses? 🤖

                Dan Korneff - Producer / Mixer / Audio Nerd

                d.healeyD 1 Reply Last reply Reply Quote 1
                • d.healeyD
                  d.healey @Dan Korneff
                  last edited by

                  @dustbro I don't think a video is neccessary.

                  Server.isEmailAddress("dustbro@hise.com"); // True
                  Server.isEmailAddress("dustbrohisecom"); // false

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post

                  57

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.8k

                  Posts