> That's fine in a one man project, but what happens in a team
> project or when you've signed off the application to the
> client and someone other than yourself changes the code in
> the default action??
I don't really see your point. :o\ Surely the default action is there
as a "catch" for
> If I enforce best practices then hopefully it'll rub off on other too. :o)
Sometimes I practice, but rarely enforce.
Taz
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For
>
> > Thats not good programming practice. You can't expect the
> > default action to do something safe. You need to specify the
> > action that you're going to take.
>
> That depends on the developer -- if I'm writing it I know it's going to
> do "something safe" cos that's the way I wrote it :
tp)|(ftp)\/\/))
> > \:[^[:space:]|
> > [:punct:]]+)", '\1',"ALL")
> >
> > > -Original Message-
> > > From: Stephen Moretti [mailto:[EMAIL PROTECTED]
> > > Sent: 05 June 2003 17:37
> > > To: [EMAIL PROTECTED]
no, ignore that...
> -Original Message-
> From: Rich Wild [mailto:[EMAIL PROTECTED]
> Sent: 05 June 2003 17:29
> To: '[EMAIL PROTECTED]'
> Subject: RE: [ cf-dev ] More Regex...
>
>
> add the [:punct:] class to the exclude?
>
> ReReplace(Attri
> Thats not good programming practice. You can't expect the
> default action to do something safe. You need to specify the
> action that you're going to take.
That depends on the developer -- if I'm writing it I know it's going to
do "something safe" cos that's the way I wrote it :o)
And ju
; To: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]cc:
ter.co.uk>
add the [:punct:] class to the exclude?
ReReplace(Attributes.showBlurb,"(((mailto)|((http)|(ftp)\/\/))\:[^[:space:]|
[:punct:]]+)", '\1',"ALL")
> -Original Message-
> From: Stephen Moretti [mailto:[EMAIL PROTECTED]
> Sent: 05 June 2003 17:37
>
I have this :
ReReplace(Attributes.showBlurb,"(((mailto)|((http)|(ftp)\/\/))\:[^[:space:]]
+)", '\1',"ALL")
It looks for mailto: http: ftp: and a string and sticks the string it finds
into an href. It all works fine, except that if there is something on the
end of the string, say a full stop or
>
> > I think I'll have to write some loopy code to find each one
> > and clean it up before sticking them in href tags :o(
>
> What happens if you've got a URL which actually ends with a period? For
> example, a fusebox URL calling the default action of the "blah" circuit:
>
> http://www.blah
> I think I'll have to write some loopy code to find each one
> and clean it up before sticking them in href tags :o(
What happens if you've got a URL which actually ends with a period? For
example, a fusebox URL calling the default action of the "blah" circuit:
http://www.blah.com/index.c
11 matches
Mail list logo