You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			|  | 5 months ago | |
|---|---|---|
| .. | ||
| .github | 5 months ago | |
| test | 5 months ago | |
| .eslintrc | 5 months ago | |
| .nycrc | 5 months ago | |
| CHANGELOG.md | 5 months ago | |
| LICENSE | 5 months ago | |
| README.md | 5 months ago | |
| index.d.ts | 5 months ago | |
| index.js | 5 months ago | |
| package.json | 5 months ago | |
| tsconfig.json | 5 months ago | |
		
			
				
				README.md
			
		
		
			
			
		
	
	safe-regex-test 
Give a regex, get a robust predicate function that tests it against a string. This will work even if RegExp.prototype is altered later.
Getting started
npm install --save safe-regex-test
Usage/Examples
var regexTester = require('safe-regex-test');
var assert = require('assert');
var tester = regexTester('a');
assert.ok(tester('a'));
assert.notOk(tester('b'));
Tests
Simply clone the repo, npm install, and run npm test
