We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28ffc13 commit 22b46d3Copy full SHA for 22b46d3
test/test.js
@@ -32,6 +32,14 @@ describe('phone-regex', function() {
32
it('should not find a phone number if it is not exact', function() {
33
assert.equal(phone({ exact: true }).test('apples 1 123 456 7890'), false);
34
});
35
+
36
+ it('should not find a phone number if there is leading whitespace', function() {
37
+ assert.equal(phone({ exact: true }).test(' 1 123 456 7890'), false);
38
+ });
39
40
+ it('should not find a phone number if there is trailing whitespace', function() {
41
+ assert.equal(phone({ exact: true }).test('1 123 456 7890 '), false);
42
43
44
45
describe('g', function() {
0 commit comments