Commit ed783dea authored by Alexander Yuzhin's avatar Alexander Yuzhin

[SE mobile] Fix bug 34112

parent 6316725c
......@@ -73,9 +73,12 @@ define([
link.asc_setHyperlinkUrl(url);
display = url;
} else {
if ( !/^[A-Z]+[1-9]\d*:[A-Z]+[1-9]\d*$/.test(args.url) ||
!/^[A-Z]+[1-9]\d*$/.test(args.url) )
{
var isValid = /^[A-Z]+[1-9]\d*:[A-Z]+[1-9]\d*$/.test(args.url);
if (!isValid)
isValid = /^[A-Z]+[1-9]\d*$/.test(args.url);
if (!isValid) {
uiApp.alert(this.textInvalidRange);
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment