blob: 52ac1538aedeba6341392959b375a72ad0005590 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/* jshint esversion: 6 */
"use strict";
const assert = require('assert');
const lisdigit = function(c) {
return /^\d$/.test(c.charAt(0));
const lisxdigit = function(c) {
return /^[0-9a-fA-F]$/.test(c.charAt(0));
};
const lisspace = function(c) {
return /^\s$/.test(c.charAt(0));
};
const lislalpha = function(c) {
return /^[_a-zA-z]$/.test(c.charAt(0));
};
const lislanum = function(c) {
return /^[_a-zA-z0-9]$/.test(c.charAt(0));
};
module.exports.lisdigit = lisdigit;
module.exports.lislalpha = lislalpha;
module.exports.lislanum = lislanum;
module.exports.lisspace = lisspace;
module.exports.lisxdigit = lisxdigit;
|