blob: 80677ee5d6a138533f714ee8b252b9122b655173 [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001var types = require('./types');
2
3exports.wordBoundary = function() {
4 return { type: types.POSITION, value: 'b' };
5};
6
7exports.nonWordBoundary = function() {
8 return { type: types.POSITION, value: 'B' };
9};
10
11exports.begin = function() {
12 return { type: types.POSITION, value: '^' };
13};
14
15exports.end = function() {
16 return { type: types.POSITION, value: '$' };
17};