mirror of
https://github.com/kennethreitz/bake.git
synced 2026-06-05 23:00:17 +00:00
5 lines
170 B
JavaScript
5 lines
170 B
JavaScript
'use strict';
|
|
const regex = '@[a-z0-9][\\w-.]+/[a-z0-9][\\w-.]*';
|
|
|
|
module.exports = opts => opts && opts.exact ? new RegExp(`^${regex}$`, 'i') : new RegExp(regex, 'gi');
|