BlogEngine.NET Twitter Widget

by Donovan Olivier April 30, 2010 10:24PM

I have been using a modified version of the BlogEngine.NET Twitter widget that I got from Al Bsharah, but noticed that it doesn't correctly create the link for Twitter user names that contain an underscore.

An easy fix for this is to modify line 354 of his widget.ascx.cs file to include an underscore in the regular expression:

private static readonly Regex regex2 = new Regex("@[a-zA-Z0-9_]*", 
                                        RegexOptions.Compiled | RegexOptions.IgnoreCase);

UPDATE May 1, 2010: The original has now been updated.


Tags: ,

Blog

Comments

May 1, 2010 6:21PM #

trackback

A Better Twitter Widget for BlogEngine.NET 1.6

A Better Twitter Widget for BlogEngine.NET 1.6

Al Bsharah |

November 18, 2010 2:49PM #

trackback

BlogEngine.NET Twitter Feed Widget

BlogEngine.NET Twitter Feed Widget

planetdonovan.com |

September 23, 2011 3:03PM #

pingback

Pingback from freerob.com

HTML | Free Software | Free Templates | Freerob.com

freerob.com |

Comments are closed

The Perpetrator

perpetrator

Donovan Olivier

software developer, architect, husband, father, son, brother, uncle, nephew, sinistral, enquirer, skeptic, cynic, anarchist, contrarian, infidel, dissident, rebel, troublemaker, dissenter, renegade.

Noise

damn this winter appetite!
planetdonovan 1 day ago

@planetdonovan it seems to be the standard ratio!
marceldupreez 1 day ago

@marceldupreez cuz there's one in every carriage ;)
planetdonovan 1 day ago

RT @marclottering: Feel like getting stoned proper today. Anyone have a COSATU connection?
planetdonovan 2 days ago

fail of the day http://t.co/7l0RI9lr
planetdonovan 4 days ago

currently suffering from severe malbeertrition.
planetdonovan 7 days ago