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 | Reply

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



The Perpetrator

perpetrator

Donovan Olivier is an agent of mediocrity in Johannesburg, South Africa. Currently performing the following roles more or less adequately: husband, father, developer, architect, skeptic, cynic, anarchist, contrarian, rebel, dissenter, troublemaker.