Beispiel #1
0
        public Url(Node value, IImporter importer)
        {
            if (value is TextNode)
            {
                var textValue = value as TextNode;
                if (!Regex.IsMatch(textValue.Value, @"^(([a-zA-Z]+:)|(\/))"))
                {
                    textValue.Value = importer.AlterUrl(textValue.Value);
                }
            }

            Value = value;
        }
Beispiel #2
0
        public Url(Node value, IImporter importer)
        {
            if (value is TextNode)
            {
                var textValue = value as TextNode;
                if (!Regex.IsMatch(textValue.Value, @"^(([a-zA-Z]+:)|(\/))"))
                {
                    textValue.Value = importer.AlterUrl(textValue.Value);
                }
            }

            Value = value;
        }