initial draft
This commit is contained in:
committed by
Manuel Bouza
parent
8ff93423af
commit
c163c23e7e
11
src/js/services/DomainCheck.js
Normal file
11
src/js/services/DomainCheck.js
Normal file
@@ -0,0 +1,11 @@
|
||||
class DomainCheck {
|
||||
constructor(url) {
|
||||
this.url = url
|
||||
}
|
||||
|
||||
get hasMatch() {
|
||||
return this.url.match(/github/)
|
||||
}
|
||||
}
|
||||
|
||||
export default DomainCheck
|
||||
Reference in New Issue
Block a user