Introduced unspecified vc doc type and added 'ne' matchop to dates
Change-Id: I6f2cbfd0671ea896d10b65b4162dd5f130fe5b3b
diff --git a/dev/js/src/vc.js b/dev/js/src/vc.js
index 18c621a..9aef8d5 100644
--- a/dev/js/src/vc.js
+++ b/dev/js/src/vc.js
@@ -56,9 +56,12 @@
], function (unspecDocClass, docClass, docGroupClass, menuClass, dpClass) {
"use strict";
- // ???
- KorAP._validStringMatchRE = new RegExp("^(?:eq|ne|contains(?:not)?|excludes)$");
+ KorAP._validUnspecMatchRE = new RegExp("^(?:eq|ne|contains(?:not)?|excludes)$");
+ KorAP._validStringMatchRE = new RegExp("^(?:eq|ne)$");
+ KorAP._validTextMatchRE = KorAP._validUnspecMatchRE;
+ KorAP._validTextOnlyMatchRE = new RegExp("^(?:contains(?:not)?|excludes)$");
KorAP._overrideStyles = false;
+ // KorAP._validDateMatchRE is defined in datepicker.js!
const loc = KorAP.Locale;
@@ -79,6 +82,7 @@
]),
'date' : menuClass.create([
['eq', null],
+ ['ne', null],
['geq', null],
['leq', null]
]),