Updated persona tab to Polymer 1

This commit is contained in:
Stefan Zermatten
2017-01-31 09:58:35 +02:00
parent 7af3b8e06e
commit 9c61493a12
13 changed files with 116 additions and 131 deletions

View File

@@ -23,3 +23,11 @@ Template.registerHelper("evaluateSignedSpaced", function(charId, string) {
Template.registerHelper("evaluateString", function(charId, string) {
return evaluateString(charId, string);
});
Template.registerHelper("evaluateShortString", function(charId, string) {
if (_.isString(string)){
return evaluateString(
charId, string.split(/^( *[-*_]){3,} *(?:\n+|$)/m)[0]
);
}
});