aswi2020vldc-gitlab/templetes/node_modules/ret/lib/positions.js @ 9b6ff40e
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 |
};
|