Skip to content

Commit 1b09174

Browse files
committed
add optional subdomain to validator
1 parent b5240e8 commit 1b09174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/TableauConnectorForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import analytics from '../analytics'
3939
import Icon from './Icon'
4040
import * as utils from '../util'
4141

42-
const datasetRegex = /^https?:\/\/(?:data\.world|localhost:\d{4})\/(.+\/.+)$/
42+
const datasetRegex = /^https?:\/\/(?:[a-z0-9]+[.])?(?:data\.world|localhost:\d{4})\/(.+\/.+)$/
4343

4444
class TableauConnectorForm extends Component {
4545
constructor (props) {

0 commit comments

Comments
 (0)