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.
14 lines
406 B
14 lines
406 B
var expect = require('chai').expect
|
|
// eslint-disable-next-line no-undef
|
|
describe('test', function () {
|
|
// eslint-disable-next-line no-undef
|
|
it('regexp', function () {
|
|
const test = '^/[^/]+/[^/]+(/releases(/.*)?)?$'
|
|
const reg = new RegExp(test)
|
|
|
|
const ret = reg.test('/docmirror/dev-sidecar/releases/tag')
|
|
// eslint-disable-next-line no-unused-expressions
|
|
expect(ret).be.ok
|
|
})
|
|
})
|