Login Register

regex

shrinksafe fails completely with a regex pattern

The presence of this regex pattern in my script (broken into two lines for display here):

var patt=/((ftp:\/\/|http:\/\/|https:\/\/|ftp:\/\/www\.|http:\/\/www\.|https:\/\/www\.|www\.)
(([A-Za-z0-9$_.+!*(),;/?:@&~=-])|%[A-Fa-f0-9]{2}){2,}(#([a-zA-Z0-9][a-zA-Z0-9$_.+!*(),;/?:@&~=%-]*))?([A-Za-z0-9$_+!*();/?:~-]))/gi;

which matches urls, causes Shrinksafe to output "null" for the entire script. I have tested with this line alone as well, and again, Shrinksafe outputs "null". Is this a known issue, and is there a workaround? thanks.

emichael

Problem with custom build of dojo-1.0.1 Mac OS X ArrayIndexOutOfBoundsException thrown when replacing require/requireIf stateme

rJLBMAC:/work/dojo/dojo-1.0.1-src/util/buildscripts john$ vi build.sh
JLBMAC:/work/dojo/dojo-1.0.1-src/util/buildscripts john$ vi build_release.sh
JLBMAC:/work/dojo/dojo-1.0.1-src/util/buildscripts john$ vi README
JLBMAC:/work/dojo/dojo-1.0.1-src/util/buildscripts john$ ./build.sh profile=standard loader=xdomain action=release
release: Using profile: profiles/standard.profile.js
release: Using version number: 0.0.0.dev for the release.
release: Deleting: ../../release/dojo
release: Copying: ../../dojo/../dijit to: ../../release/dojo/dijit

ValidationTextBox and regular expressions....Help!

Hi!

I'm having some trouble with the programmatic creation ov a dijit.form.ValidationTextBox:
I'm currently wondering why this doesn't work:

var validationBox = new dijit.form.ValidationTextBox({
        regExp: "[\w]+",
        required: true,
        invalidMessage: "regexp [\w]+ not fulfilled...."
},dojo.byId("tmpTagContainer"));

The problem seems to be the given Regular expression. The source file of the ValidationTextBox states, that the regular expression needs to be a string. The validation of the entered string always fails.

Syndicate content