UNPKG

614 BJavaScriptView Raw
1'use strict';
2
3module.exports = {
4 // Currently doesn't handle other PVL-allowed numeric notations
5 // For example, based notation (`16#4B#`) or scientific notation (`1.234E2`)
6 numericPatterns: [
7 /^([+\-]?\d+(\.\d*)?)$/
8 ],
9
10 // Currently only handles a subset of DateTime formats, and
11 // doesn't include date-only or time-only formats
12 dateTimePatterns: [
13 /^(\d[\d+:TZ\-]+)$/
14 ],
15
16 textStringPatterns: [
17 /^"([^"]*)"$/,
18 /^'([^']*)'$/,
19 // Unquoted strings may not contain any of these reserved characters
20 // They may contain whitespace
21 /^([^!"#%&'(),;<=>@[\]`{|}~]+)$/
22 ]
23};