Skip to content

Commit 7270a5c

Browse files
committed
docs: fixed example to use exact
1 parent 3f57768 commit 7270a5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ for (const match of matches) {
6666
console.log('match', match);
6767
}
6868

69-
console.log(urlRegexSafe().test('github.com'));
69+
console.log(urlRegexSafe({ exact: true }).test('github.com'));
7070
```
7171

7272
### Browser
@@ -88,7 +88,7 @@ This is the solution for you if you're just using `<script>` tags everywhere!
8888
console.log('match', matches[i]);
8989
}
9090
91-
console.log(urlRegexSafe().test('github.com'));
91+
console.log(urlRegexSafe({ exact: true }).test('github.com'));
9292
})();
9393
</script>
9494
```

0 commit comments

Comments
 (0)