24 lines
785 B
JavaScript
24 lines
785 B
JavaScript
"use strict";
|
|
(function () {
|
|
'use strict';
|
|
var jsep = window.jsep;
|
|
angular.module('myitsmApp')
|
|
.service('expressionSyntaxTreeBuilder', [function () {
|
|
// Set up new operators
|
|
jsep.addBinaryOp('LIKE', 7);
|
|
// Remove default unused binary operators
|
|
jsep.removeBinaryOp('=');
|
|
jsep.removeBinaryOp('|');
|
|
jsep.removeBinaryOp('^');
|
|
jsep.removeBinaryOp('&');
|
|
jsep.removeBinaryOp('===');
|
|
jsep.removeBinaryOp('!==');
|
|
jsep.removeBinaryOp('<<');
|
|
jsep.removeBinaryOp('>>');
|
|
jsep.removeBinaryOp('>>>');
|
|
// Remove default unused unary operators
|
|
jsep.removeUnaryOp('~');
|
|
return jsep;
|
|
}]);
|
|
})();
|