Bug in TextParts parsing

rated by 0 users
This post has 3 Replies | 2 Followers

Not Ranked
Posts 16
Points 200
aghiondea Posted: Sat, Feb 3 2007 10:46 AM

Hello.

I am trying to write a CS Module that will take a TextPart and turn it into a link. The problem is that, if I declare a TextPart as below

[tags: Linq, C#]

the TextPart is not recognized. If I do not use the # symbol, the TextPart is recognized. I believe that the # symbol is not the only character that crashes the parser.

Is there any workaround for this? I am running CS 2.1 SP2 on top of ASP.NET 2.0.

Thank you

Alexandru Ghiondea MCP http://weblogs.studentclub.ro/aghiondea
Top 25 Contributor
Posts 1,879
Points 37,940
CS Developers

Hi aghiondea,

Unfortunately, unless you want to get your hands dirty, the issue is in the code and would require a recompile. Sad

If you look at the source of TextPartManager (line 235), you'll see there's a hardcoded regular expression which allows for alphanumeric characters and only a handful of others.

Hope that helps...

 

One is glad to be of service...

Jose Lema

  • | Post Points: 35
Not Ranked
Posts 16
Points 200

Hi Jose!

Thank you for your answer. I would not mind a recompile on my machine, but if I want to be able to distribute the CSModule, others might not want to do a recompile. Is this behavior going to change? Do you plan on removing the hardcoded regex from the code and into a config file?

Thank you,

 

Alexandru Ghiondea MCP http://weblogs.studentclub.ro/aghiondea
  • | Post Points: 5
Not Ranked
Posts 16
Points 200

Hi Jose.

I found another way of doing what I wanted (to create links to external categories sites based on post categories) and I was wondering how to post this module on the CS site for public use. Can you provide some information regarding the procedure of publishing a CS Module?

Thank you,

Alexandru Ghiondea MCP http://weblogs.studentclub.ro/aghiondea
  • | Post Points: 5
Page 1 of 1 (4 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com