Commit a774e533 authored by Dan Rossi's avatar Dan Rossi
Browse files

- #40 fixes to the url validation to allow query strings to root paths of a url.

parent 08a514f2
......@@ -36,7 +36,7 @@ package org.flowplayer.util {
public static function isValid(URL:String):Boolean {
var regex:RegExp = /^http(s)?:\/\/((\d+\.\d+\.\d+\.\d+)|(([\w-]+\.)+([a-z,A-Z][\w-]*)))(:[1-9][0-9]*)?(\/([\w-.\/:%+@&=]+[\w- .\/?:%+@&=]*)?)?(#(.*))?$/i;
var regex:RegExp = /^http(s)?:\/\/((\d+\.\d+\.\d+\.\d+)|(([\w-]+\.)+([a-z,A-Z][\w-]*)))(:[1-9][0-9]*)?(\/(?:%+@&=)|([\w-.\/:%+@&=]+[\w-.\/?:%+@&=]*)?)?(#(.*))?$/i;
return regex.test(URL);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment