mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
fix: add more false test cases relating to master and branches
This commit is contained in:
parent
8ce1b0514b
commit
002865f4c0
1 changed files with 13 additions and 1 deletions
|
@ -25,7 +25,7 @@ limitations under the License.
|
|||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
export const reURI = /^https:\/\/git\.sr\.ht\/~([^~]*)\/(.*)\/?/
|
||||
export const reURI = /^https:\/\/git\.sr\.ht\/~([^~/]*)\/([^/]*)\/?$/
|
||||
|
||||
/**
|
||||
* @function
|
||||
|
@ -88,5 +88,17 @@ export const tests = [
|
|||
{
|
||||
uri: 'https://domain.org/alice/keyoxide_proof',
|
||||
shouldMatch: false
|
||||
},
|
||||
{
|
||||
uri: 'https://git.sr.ht/~alice/proof_repo/tree/master',
|
||||
shouldMatch: false
|
||||
},
|
||||
{
|
||||
uri: 'https://git.sr.ht/~alice/proof_repo/blob/master/proof.md',
|
||||
shouldMatch: false
|
||||
},
|
||||
{
|
||||
uri: 'https://git.sr.ht/~alice/proof_repo/blob/main/proof.md',
|
||||
shouldMatch: false
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue