import angular from 'angular';

const availity = {
  MODULE_UI: 'availity.ui',
  VERSION: process.env.VERSION,
  ui: angular.module(availity.MODULE_UI, ['ng', 'ngSanitize'])
};

availity.ui.constant('AV_UI', {
  NG_OPTIONS: /^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/
});

export default availity;

@@ -25,20 +25,21 @@
 ular';%0A%0A
-cons
+impor
 t availi
@@ -45,77 +45,40 @@
 ity 
-= %7B%0A  MODULE_UI: 'availity.ui',%0A  VERSION: process.env.VERSION,%0A  ui:
+from '../module';%0A%0Aavaility.ui =
  ang
@@ -104,17 +104,17 @@
 y.MODULE
-_
+.
 UI, %5B'ng
@@ -130,18 +130,16 @@
 itize'%5D)
-%0A%7D
 ;%0A%0Aavail
@@ -248,16 +248,51 @@
 %5CS%5D+?))?
+(?:%5Cs+disable%5Cs+when%5Cs+(%5B%5Cs%5CS%5D+?))?
 %5Cs+for%5Cs

update ng-options regex