diff --git a/dist/amd/aurelia-validation.js b/dist/amd/aurelia-validation.js index e5c571df..e4ab9c1f 100644 --- a/dist/amd/aurelia-validation.js +++ b/dist/amd/aurelia-validation.js @@ -596,7 +596,7 @@ define('aurelia-validation', ['exports', 'aurelia-binding', 'aurelia-templating' }()); function getAccessorExpression(fn) { /* tslint:disable:max-line-length */ - var classic = /^function\s*\([$_\w\d]+\)\s*\{(?:\s*"use strict";)?\s*(?:[$_\w\d.['"\]+;]+)?\s*return\s+[$_\w\d]+\.([$_\w\d]+)\s*;?\s*\}$/; + var classic = /^function\s*\([$_\w\d]+\)\s*\{(?:\s*"use strict";)?(?:[$_\s\w\d\/\*.['"\]+;]+)?\s*return\s+[$_\w\d]+\.([$_\w\d]+)\s*;?\s*\}$/; /* tslint:enable:max-line-length */ var arrow = /^\(?[$_\w\d]+\)?\s*=>\s*[$_\w\d]+\.([$_\w\d]+)$/; var match = classic.exec(fn) || arrow.exec(fn); diff --git a/dist/commonjs/aurelia-validation.js b/dist/commonjs/aurelia-validation.js index fdb59581..bc16f02b 100644 --- a/dist/commonjs/aurelia-validation.js +++ b/dist/commonjs/aurelia-validation.js @@ -605,7 +605,7 @@ var PropertyAccessorParser = /** @class */ (function () { }()); function getAccessorExpression(fn) { /* tslint:disable:max-line-length */ - var classic = /^function\s*\([$_\w\d]+\)\s*\{(?:\s*"use strict";)?\s*(?:[$_\w\d.['"\]+;]+)?\s*return\s+[$_\w\d]+\.([$_\w\d]+)\s*;?\s*\}$/; + var classic = /^function\s*\([$_\w\d]+\)\s*\{(?:\s*"use strict";)?(?:[$_\s\w\d\/\*.['"\]+;]+)?\s*return\s+[$_\w\d]+\.([$_\w\d]+)\s*;?\s*\}$/; /* tslint:enable:max-line-length */ var arrow = /^\(?[$_\w\d]+\)?\s*=>\s*[$_\w\d]+\.([$_\w\d]+)$/; var match = classic.exec(fn) || arrow.exec(fn); diff --git a/dist/es2015/aurelia-validation.js b/dist/es2015/aurelia-validation.js index 97f7c101..5cebb8c8 100644 --- a/dist/es2015/aurelia-validation.js +++ b/dist/es2015/aurelia-validation.js @@ -533,7 +533,7 @@ class PropertyAccessorParser { PropertyAccessorParser.inject = [Parser]; function getAccessorExpression(fn) { /* tslint:disable:max-line-length */ - const classic = /^function\s*\([$_\w\d]+\)\s*\{(?:\s*"use strict";)?\s*(?:[$_\w\d.['"\]+;]+)?\s*return\s+[$_\w\d]+\.([$_\w\d]+)\s*;?\s*\}$/; + const classic = /^function\s*\([$_\w\d]+\)\s*\{(?:\s*"use strict";)?(?:[$_\s\w\d\/\*.['"\]+;]+)?\s*return\s+[$_\w\d]+\.([$_\w\d]+)\s*;?\s*\}$/; /* tslint:enable:max-line-length */ const arrow = /^\(?[$_\w\d]+\)?\s*=>\s*[$_\w\d]+\.([$_\w\d]+)$/; const match = classic.exec(fn) || arrow.exec(fn); diff --git a/dist/es2017/aurelia-validation.js b/dist/es2017/aurelia-validation.js index 97f7c101..5cebb8c8 100644 --- a/dist/es2017/aurelia-validation.js +++ b/dist/es2017/aurelia-validation.js @@ -533,7 +533,7 @@ class PropertyAccessorParser { PropertyAccessorParser.inject = [Parser]; function getAccessorExpression(fn) { /* tslint:disable:max-line-length */ - const classic = /^function\s*\([$_\w\d]+\)\s*\{(?:\s*"use strict";)?\s*(?:[$_\w\d.['"\]+;]+)?\s*return\s+[$_\w\d]+\.([$_\w\d]+)\s*;?\s*\}$/; + const classic = /^function\s*\([$_\w\d]+\)\s*\{(?:\s*"use strict";)?(?:[$_\s\w\d\/\*.['"\]+;]+)?\s*return\s+[$_\w\d]+\.([$_\w\d]+)\s*;?\s*\}$/; /* tslint:enable:max-line-length */ const arrow = /^\(?[$_\w\d]+\)?\s*=>\s*[$_\w\d]+\.([$_\w\d]+)$/; const match = classic.exec(fn) || arrow.exec(fn); diff --git a/dist/native-modules/aurelia-validation.js b/dist/native-modules/aurelia-validation.js index 7128a24c..b0edf9c8 100644 --- a/dist/native-modules/aurelia-validation.js +++ b/dist/native-modules/aurelia-validation.js @@ -602,7 +602,7 @@ var PropertyAccessorParser = /** @class */ (function () { }()); function getAccessorExpression(fn) { /* tslint:disable:max-line-length */ - var classic = /^function\s*\([$_\w\d]+\)\s*\{(?:\s*"use strict";)?\s*(?:[$_\w\d.['"\]+;]+)?\s*return\s+[$_\w\d]+\.([$_\w\d]+)\s*;?\s*\}$/; + var classic = /^function\s*\([$_\w\d]+\)\s*\{(?:\s*"use strict";)?(?:[$_\s\w\d\/\*.['"\]+;]+)?\s*return\s+[$_\w\d]+\.([$_\w\d]+)\s*;?\s*\}$/; /* tslint:enable:max-line-length */ var arrow = /^\(?[$_\w\d]+\)?\s*=>\s*[$_\w\d]+\.([$_\w\d]+)$/; var match = classic.exec(fn) || arrow.exec(fn); diff --git a/dist/system/aurelia-validation.js b/dist/system/aurelia-validation.js index 312ee050..f2d968d9 100644 --- a/dist/system/aurelia-validation.js +++ b/dist/system/aurelia-validation.js @@ -639,7 +639,7 @@ System.register(['aurelia-binding', 'aurelia-templating', 'aurelia-logging', 'au }())); function getAccessorExpression(fn) { /* tslint:disable:max-line-length */ - var classic = /^function\s*\([$_\w\d]+\)\s*\{(?:\s*"use strict";)?\s*(?:[$_\w\d.['"\]+;]+)?\s*return\s+[$_\w\d]+\.([$_\w\d]+)\s*;?\s*\}$/; + var classic = /^function\s*\([$_\w\d]+\)\s*\{(?:\s*"use strict";)?(?:[$_\s\w\d\/\*.['"\]+;]+)?\s*return\s+[$_\w\d]+\.([$_\w\d]+)\s*;?\s*\}$/; /* tslint:enable:max-line-length */ var arrow = /^\(?[$_\w\d]+\)?\s*=>\s*[$_\w\d]+\.([$_\w\d]+)$/; var match = classic.exec(fn) || arrow.exec(fn); diff --git a/dist/umd-es2015/aurelia-validation.js b/dist/umd-es2015/aurelia-validation.js index 2fa16f86..0686b410 100644 --- a/dist/umd-es2015/aurelia-validation.js +++ b/dist/umd-es2015/aurelia-validation.js @@ -531,7 +531,7 @@ PropertyAccessorParser.inject = [aureliaBinding.Parser]; function getAccessorExpression(fn) { /* tslint:disable:max-line-length */ - const classic = /^function\s*\([$_\w\d]+\)\s*\{(?:\s*"use strict";)?\s*(?:[$_\w\d.['"\]+;]+)?\s*return\s+[$_\w\d]+\.([$_\w\d]+)\s*;?\s*\}$/; + const classic = /^function\s*\([$_\w\d]+\)\s*\{(?:\s*"use strict";)?(?:[$_\s\w\d\/\*.['"\]+;]+)?\s*return\s+[$_\w\d]+\.([$_\w\d]+)\s*;?\s*\}$/; /* tslint:enable:max-line-length */ const arrow = /^\(?[$_\w\d]+\)?\s*=>\s*[$_\w\d]+\.([$_\w\d]+)$/; const match = classic.exec(fn) || arrow.exec(fn); diff --git a/dist/umd/aurelia-validation.js b/dist/umd/aurelia-validation.js index 7efcd39b..cb1afa2b 100644 --- a/dist/umd/aurelia-validation.js +++ b/dist/umd/aurelia-validation.js @@ -600,7 +600,7 @@ }()); function getAccessorExpression(fn) { /* tslint:disable:max-line-length */ - var classic = /^function\s*\([$_\w\d]+\)\s*\{(?:\s*"use strict";)?\s*(?:[$_\w\d.['"\]+;]+)?\s*return\s+[$_\w\d]+\.([$_\w\d]+)\s*;?\s*\}$/; + var classic = /^function\s*\([$_\w\d]+\)\s*\{(?:\s*"use strict";)?(?:[$_\s\w\d\/\*.['"\]+;]+)?\s*return\s+[$_\w\d]+\.([$_\w\d]+)\s*;?\s*\}$/; /* tslint:enable:max-line-length */ var arrow = /^\(?[$_\w\d]+\)?\s*=>\s*[$_\w\d]+\.([$_\w\d]+)$/; var match = classic.exec(fn) || arrow.exec(fn); diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 5a392612..beb864b3 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,9 @@ +# [2.0.0-rc2](https://github.com/aurelia/validation/compare/2.0.0-rc1...2.0.0-rc2) (2020-06-12) + +## Bug Fixes + +* Istanbul bug + # [2.0.0-rc1](https://github.com/aurelia/validation/compare/1.6.0...2.0.0-rc1) (2020-03-26) diff --git a/package-lock.json b/package-lock.json index 3e77c673..998d8b05 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "aurelia-validation", - "version": "2.0.0-rc1", + "version": "2.0.0-rc2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index d18108a6..0a1e1888 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-validation", - "version": "2.0.0-rc1", + "version": "2.0.0-rc2", "description": "Validation for Aurelia applications", "keywords": [ "aurelia",