Sha256: 2a72dabfd1dc982a11749b561809de1e4eb1f47a5baa17520633693bbce4679d

Contents?: true

Size: 885 Bytes

Versions: 101

Compression:

Stored size: 885 Bytes

Contents

const unicode = require('../lib/unicode')

module.exports = {
    isSpaceSeparator (c) {
        return typeof c === 'string' && unicode.Space_Separator.test(c)
    },

    isIdStartChar (c) {
        return typeof c === 'string' && (
            (c >= 'a' && c <= 'z') ||
        (c >= 'A' && c <= 'Z') ||
        (c === '$') || (c === '_') ||
        unicode.ID_Start.test(c)
        )
    },

    isIdContinueChar (c) {
        return typeof c === 'string' && (
            (c >= 'a' && c <= 'z') ||
        (c >= 'A' && c <= 'Z') ||
        (c >= '0' && c <= '9') ||
        (c === '$') || (c === '_') ||
        (c === '\u200C') || (c === '\u200D') ||
        unicode.ID_Continue.test(c)
        )
    },

    isDigit (c) {
        return typeof c === 'string' && /[0-9]/.test(c)
    },

    isHexDigit (c) {
        return typeof c === 'string' && /[0-9A-Fa-f]/.test(c)
    },
}

Version data entries

101 entries across 76 versions & 9 rubygems

Version Path
disco_app-0.18.1 test/dummy/node_modules/style-loader/node_modules/json5/lib/util.js
disco_app-0.18.1 test/dummy/node_modules/sass-loader/node_modules/json5/lib/util.js
disco_app-0.18.1 test/dummy/node_modules/file-loader/node_modules/json5/lib/util.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@babel/core/node_modules/json5/lib/util.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/file-loader/node_modules/json5/lib/util.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/sass-loader/node_modules/json5/lib/util.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/style-loader/node_modules/json5/lib/util.js
disco_app-0.14.0 test/dummy/node_modules/@babel/core/node_modules/json5/lib/util.js
disco_app-0.14.0 test/dummy/node_modules/style-loader/node_modules/json5/lib/util.js
disco_app-0.14.0 test/dummy/node_modules/sass-loader/node_modules/json5/lib/util.js
disco_app-0.14.0 test/dummy/node_modules/file-loader/node_modules/json5/lib/util.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@babel/core/node_modules/json5/lib/util.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/file-loader/node_modules/json5/lib/util.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/sass-loader/node_modules/json5/lib/util.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/style-loader/node_modules/json5/lib/util.js
trusty-cms-5.0.1 node_modules/json5/lib/util.js
trusty-cms-4.3.5 node_modules/json5/lib/util.js
trusty-cms-5.0.0 node_modules/json5/lib/util.js
trusty-cms-4.3.4 node_modules/json5/lib/util.js
trusty-cms-4.3.3 node_modules/json5/lib/util.js