Skip to content

Commit 34e136b

Browse files
committed
fix(Embedded Management): Create advanced applications, configure interfaces, and output interface URL formats
1 parent 57ba9e0 commit 34e136b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/views/system/embedded/iframe.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ const validatePass = (_: any, value: any, callback: any) => {
297297
new Error(t('datasource.please_enter') + t('common.empty') + t('embedded.interface_url'))
298298
)
299299
} else {
300-
var Expression = /(https?:\/\/)?([\da-z\.-]+)\.([a-z]{2,6})(:\d{1,5})?([\/\w\.-]*)*\/?(#[\S]+)?/ // eslint-disable-line
300+
// var Expression = /(https?:\/\/)?([\da-z\.-]+)\.([a-z]{2,6})(:\d{1,5})?([\/\w\.-]*)*\/?(#[\S]+)?/ // eslint-disable-line
301+
var Expression = /^https?:\/\/[^\s/?#]+(:\d+)?/i
301302
var objExp = new RegExp(Expression)
302303
if (objExp.test(value) && value.startsWith(currentEmbedded.domain)) {
303304
callback()

0 commit comments

Comments
 (0)