Package Exports
- glsl-version-regex
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (glsl-version-regex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
glsl-version-regex
A regex for GLSL version statements.
var version = require('glsl-version-regex')
version.test('#version 300')
//=> true
version.test('#version')
//=> false
version.exec('#version 100')
//=> [ ..., '100', ... ]
version.exec('#version 300 es // comment')
//=> [ ..., '300 es', ... ]Usage
regex = require('glsl-version-regex')
Requiring this module will provide you with the regex.
License
MIT, see LICENSE.md for details.
