fix: add more false test cases relating to master and branches

This commit is contained in:
quaff 2024-10-16 00:35:14 -07:00
parent 8ce1b0514b
commit 002865f4c0
No known key found for this signature in database
GPG key ID: E1BF1FDE24A291D4

View file

@ -25,7 +25,7 @@ limitations under the License.
import * as E from '../enums.js' import * as E from '../enums.js'
import { ServiceProvider } from '../serviceProvider.js' import { ServiceProvider } from '../serviceProvider.js'
export const reURI = /^https:\/\/git\.sr\.ht\/~([^~]*)\/(.*)\/?/ export const reURI = /^https:\/\/git\.sr\.ht\/~([^~/]*)\/([^/]*)\/?$/
/** /**
* @function * @function
@ -88,5 +88,17 @@ export const tests = [
{ {
uri: 'https://domain.org/alice/keyoxide_proof', uri: 'https://domain.org/alice/keyoxide_proof',
shouldMatch: false 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
} }
] ]