hmm it seems the problem is that the BoldSyntaxFilter matches the bold syntax when in a link label. private static final Pattern BOLDSYNTAX_PATTERN = Pattern.compile("(?<!\\*)\\*([^\\p{Space}](?:[^*\n]*+|\\*)*?(?<=[^\\p{Space}]))\\*(?!\\*)"); Matches [*notbold*>reference] Thus it's put in the FilterContext as some wiki syntax to be protected. I've tested it on http://www.regexplanet.com/simple/ and it says it matches. I have no idea why this is coming up now though since I can't find any recent commits in this area. Ideas? Thanks -Vincent On Feb 26, 2011, at 12:49 PM, Thomas Mortagne wrote:
I wanted to check on hudson but looks like the agent-2 is in a very bad shape. I even restarted it but it does not change anything...
On Sat, Feb 26, 2011 at 12:45, Vincent Massol <[email protected]> wrote:
On Feb 26, 2011, at 12:39 PM, Thomas Mortagne wrote:
Hi,
I can't reproduce this locally. All build fine for me.
Strange, I don't have local changes.
Thanks -Vincent
On Sat, Feb 26, 2011 at 12:19, Vincent Massol <[email protected]> wrote:
Hi Thomas,
FYI the build is failing on the xwiki10 parser syntax tests (links3.test):
junit.framework.ComparisonFailure: null Expected :[[http:~~/~~/reference>>reference]] [[*not bold*>>reference]] Actual :[[http:~~/~~/reference>>reference]] [[**not bold**>>reference]] at org.xwiki.rendering.scaffolding.RenderingTestCase.runTestInternal(RenderingTestCase.java:159) at org.xwiki.rendering.scaffolding.RenderingTestCase.runTest(RenderingTestCase.java:106) at org.jmock.core.VerifyingTestCase.runBare(VerifyingTestCase.java:39) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
Seems like non bold is transformed into bold now.
Any ide?
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs