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 ab79ac0 commit 4f94cd1Copy full SHA for 4f94cd1
src/lib/isSlug.js
@@ -1,6 +1,6 @@
1
import assertString from './util/assertString';
2
3
-let charsetRegex = /^[a-z0-9](?!.*[-_]{2,})(?:[a-z0-9_-]*[a-z0-9])?$/;
+const charsetRegex = /^[a-z0-9](?!.*[-_]{2,})(?:[a-z0-9_-]*[a-z0-9])?$/;
4
5
export default function isSlug(str) {
6
assertString(str);
0 commit comments