| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 1 | var types = require('./types'); |
| 2 | |||||
| 3 | exports.wordBoundary = function() { | ||||
| 4 | return { type: types.POSITION, value: 'b' }; | ||||
| 5 | }; | ||||
| 6 | |||||
| 7 | exports.nonWordBoundary = function() { | ||||
| 8 | return { type: types.POSITION, value: 'B' }; | ||||
| 9 | }; | ||||
| 10 | |||||
| 11 | exports.begin = function() { | ||||
| 12 | return { type: types.POSITION, value: '^' }; | ||||
| 13 | }; | ||||
| 14 | |||||
| 15 | exports.end = function() { | ||||
| 16 | return { type: types.POSITION, value: '$' }; | ||||
| 17 | }; | ||||