xdbc 1.0.79 → 1.0.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DBC/REGEX.js +1 -1
- package/package.json +1 -1
- package/src/DBC/REGEX.ts +1 -1
package/dist/DBC/REGEX.js
CHANGED
|
@@ -95,7 +95,7 @@ export class REGEX extends DBC {
|
|
|
95
95
|
/** Stores often used {@link RegExp }s. */
|
|
96
96
|
REGEX.stdExp = {
|
|
97
97
|
property: /^[$_A-Za-z][$_A-Za-z0-9]*$/,
|
|
98
|
-
url: /^(?:(?:http:|https?|ftp):\/\/)?(?:\S+(?::\S*)?@)?(?:
|
|
98
|
+
url: /^(?:(?:http:|https?|ftp):\/\/)?(?:\S+(?::\S*)?@)?(?:localhost|(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,})(?::\d{2,5})?(?:\/(?:[\w\-\.]*\/)*[\w\-\.]+(?:\?\S*)?(?:#\S*)?)?$/i,
|
|
99
99
|
keyPath: /^([a-zA-Z_$][a-zA-Z0-9_$]*\.)*[a-zA-Z_$][a-zA-Z0-9_$]*$/,
|
|
100
100
|
date: /^\d{1,4}[.\/-]\d{1,2}[.\/-]\d{1,4}$/i,
|
|
101
101
|
dateFormat: /^((D{1,2}[./-]M{1,2}[./-]Y{1,4})|(M{1,2}[./-]D{1,2}[./-]Y{1,4})|Y{1,4}[./-]D{1,2}[./-]M{1,2}|(Y{1,4}[./-]M{1,2}[./-]D{1,2}))$/i,
|
package/package.json
CHANGED
package/src/DBC/REGEX.ts
CHANGED
|
@@ -8,7 +8,7 @@ export class REGEX extends DBC {
|
|
|
8
8
|
/** Stores often used {@link RegExp }s. */
|
|
9
9
|
public static stdExp = {
|
|
10
10
|
property: /^[$_A-Za-z][$_A-Za-z0-9]*$/,
|
|
11
|
-
url: /^(?:(?:http:|https?|ftp):\/\/)?(?:\S+(?::\S*)?@)?(?:
|
|
11
|
+
url: /^(?:(?:http:|https?|ftp):\/\/)?(?:\S+(?::\S*)?@)?(?:localhost|(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,})(?::\d{2,5})?(?:\/(?:[\w\-\.]*\/)*[\w\-\.]+(?:\?\S*)?(?:#\S*)?)?$/i,
|
|
12
12
|
keyPath: /^([a-zA-Z_$][a-zA-Z0-9_$]*\.)*[a-zA-Z_$][a-zA-Z0-9_$]*$/,
|
|
13
13
|
date: /^\d{1,4}[.\/-]\d{1,2}[.\/-]\d{1,4}$/i,
|
|
14
14
|
dateFormat:
|