1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-17 15:24:50 +00:00

Fixed custom classes containing a dash

This commit is contained in:
Jeremy Ruston 2012-03-05 15:13:52 +00:00
parent ed6cc0b7e3
commit bfc1f1aaa5

View File

@ -122,7 +122,7 @@ var rules = [
rowTypes: {"c":"caption", "h":"thead", "":"tbody", "f":"tfoot"},
handler: function(w)
{
var table = Renderer.ElementNode("table",{"class": "twtable"},[]);
var table = Renderer.ElementNode("table",{"class": "table"},[]);
w.output.push(table);
var prevColumns = [];
var currRowType = null;
@ -646,7 +646,7 @@ var rules = [
w.subWikifyTerm(e.children,/(@@)/mg);
break;
case "{{":
var lookaheadRegExp = /\{\{[\s]*([\w]+[\s\w]*)[\s]*\{(\n?)/mg;
var lookaheadRegExp = /\{\{[\s]*([\-\w]+[\-\s\w]*)[\s]*\{(\n?)/mg;
lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = lookaheadRegExp.exec(w.source);
if(lookaheadMatch) {