Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4543682
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:33:55+00:00 2026-05-21T15:33:55+00:00

I have a bug to fix in work where the UK Pound symbol, £,

  • 0

I have a bug to fix in work where the UK Pound symbol, £, is allowed in the domain name.

I checked the EmailValidator source and can see that it is not a disallowed symbol, whereas things like the dollar sign are:

public class EmailValidator extends Validator
{
    include "../core/Version.as";

    //--------------------------------------------------------------------------
    //
    //  Class constants
    //
    //--------------------------------------------------------------------------

    /**
     *  @private
     */
    private static const DISALLOWED_LOCALNAME_CHARS:String =
                                "()<>,;:\\\"[] `~!#$%^&*={}|/?'";
    /**
     *  @private
     */                         
    private static const DISALLOWED_DOMAIN_CHARS:String =
                                "()<>,;:\\\"[] `~!#$%^&*+={}|/?'";

As you can see DISALLOWED_DOMAIN_CHARS string does not include the £ sign. Was thinking of monkey patching (basically copying the entire class, editing it, and adding it to my src – for those not in the know), but we use RSL’s, so that would be problematic.

Any ideas folks?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T15:33:56+00:00Added an answer on May 21, 2026 at 3:33 pm

    I think You should override the method doValidation of Class mx.validators.EmailValidator like this rather than clone a Class

    override protected function doValidation(value:Object):Array
            {
                var results:Array =  super.doValidation(value);
    
                var emailStr:String = String(value);
                var poundPos:int = emailStr.indexOf("£");
                if (poundPos != -1)
                {
                    results.push(new ValidationResult(
                        true, null, "invalidChar",
                        this.invalidCharError));
    
                }
    
                return results;                      
            }
    

    Hopes that helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a rather weird problem that should fix a bug in my current
I have a webapp running that has a bug. I know how to fix
I have an IE bug that I'm not sure how to fix. Using jQuery
I have a very strange bug in a shipping iPad/iPhone app that I can't
i have bug that i cannot find, i have Class Point with method who
We have a bug in our application that does not occur every time and
We have this bug that only appears 30% of the time for the Release
I have an emergent bug that I've got to track down tomorrow. I know
In order to fix a bug, I have to iterate over all the rows
I currently work into a big project that consists of lots of classes. Can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.