This is the historical archive of the now-inactive 'grubstreet' list.
Discussion on OpenGuides development has now moved to OpenGuides-Dev. Discussion on The Open Guide to London now takes place on OpenGuides-London.

[grubstreet] Bugfix to search script

[prev] [thread] [next] [lurker] [Date index for 2002/12/11]

From: Ivor Williams
Subject: [grubstreet] Bugfix to search script
Date: 12:06 on 11 Dec 2002
__PATCH FOLLOWS__
47a48,51
> # Escape out any single quotes
> 
> 	$text =~ s/'/\\'/g;
> 
76c80
< 		$_ = /^(\'[^']+\'|[\[\]\{\},\d]|undef)+$/ ? $& : '';
---
> 		$_ = /^(\'([^']|\\')*[^\\]\'|[\[\]\{\},\d]|undef)+$/ ? $& : '';
__END PATCH__


-- 
grubstreet mailing list
http://london.openguides.org/old-list-archives/