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.
30 lines
521 B
30 lines
521 B
'use strict';
|
|
|
|
var re = /^\/((?:\\\/|[^\/])+)\/([imgy]*)$/;
|
|
/*
|
|
Matches parts of a regular expression string.
|
|
|
|
/^\/
|
|
- match a string that begins with a /
|
|
()
|
|
- capture
|
|
(?:)+
|
|
- capture, but do not remember, a group of characters which occur 1 or more times
|
|
\\\/
|
|
- match the literal \/
|
|
|
|
|
- OR
|
|
[^\/]
|
|
- anything which is not the literal \/
|
|
\/
|
|
- match the literal /
|
|
([imgy]*)
|
|
- capture any characters matching `imgy` occurring 0 or more times
|
|
$/
|
|
- string end
|
|
*/
|
|
|
|
|
|
// EXPORTS //
|
|
|
|
module.exports = re;
|
|
|