Skip to content

Commit fd870dc

Browse files
committed
Patterns
1 parent cf0584c commit fd870dc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/microdata-template.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
* @property address will match object address of dot or bracket syntax (e.g. foo.bar and foo[bar] and foo[bar][too]).
117117
* @property expression will match any prefix to the token value (e.g. "{{ parseDateToTimeValue:someDateString }}").
118118
* @property expressionsplit separates transforms applied progressively (e.g. "{{ thenDoThis:doThis:someValue }}").
119+
* @property expressioncombo separates expression(s) from a combineString list (e.g. "combineString:("foo",bar)").
119120
* @property orsplit separates tokens progressively considered for value (e.g. "{{ perhaps|maybe|probably|definitely }}").
120121
* @property falsey tests for boolean considerate of RESTful responses (e.g. falsey.test("False"); falsey.test(" "); // return true).
121122
*/
@@ -125,6 +126,7 @@
125126
address: /(\w+(\.\w+)+)|(\w+(\[\w+\])+)/,
126127
expression: /^(.*)\:(?=[^:]*$)(.*)/,
127128
expressionsplit: /\:/,
129+
expressioncombo: /^([^(]+)/,
128130
orsplit: /\|/,
129131
falsey: /^(false|null|undefined|nan|0|\s*)$/i
130132
};

0 commit comments

Comments
 (0)