Update of /cvsroot/mvp-xml/nxslt/v2/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31523/v2/src
Modified Files:
Utils.cs
Log Message:
Index: Utils.cs
===================================================================
RCS file: /cvsroot/mvp-xml/nxslt/v2/src/Utils.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Utils.cs 9 Jan 2006 11:01:42 -0000 1.3
+++ Utils.cs 9 Jan 2006 11:39:38 -0000 1.4
@@ -91,7 +91,7 @@
public static string ExtractStylsheetHrefFromPI(XPathNavigator pi)
{
- Regex r = new Regex(@"href[ \n\t\r]*=[ \n\t\r]*""(.*)""|href[ \n\t\r]*=[ \n\t\r]*'(.*)'");
+ Regex r = new Regex(@"href[ \n\t\r]*=[ \n\t\r]*""([^""]*)""|href[ \n\t\r]*=[ \n\t\r]*'([^']*)'");
Match m = r.Match(pi.Value);
if (!m.Success)
{
@@ -100,7 +100,7 @@
}
//Found href pseudo attribute value
string href = m.Groups[1].Success ? m.Groups[1].Value :
- m.Groups[2].Value;
+ m.Groups[2].Value;
return href;
}
|