Skip to content

Commit

Permalink
Fix the some images not loading issue by switching to steemitimages i…
Browse files Browse the repository at this point in the history
…nstead of dev and add a " so images are still rendered.

the steemit condenser repo used steemitdev but switching to steemitimages has better consistency.
Images would not be identified because of a " in them so that should be fixed as well.
  • Loading branch information
hispeedimagins committed Aug 2, 2018
1 parent eac8a9b commit b1f5640
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -5,7 +5,8 @@ package com.steemapp.lokisveil.steemapp.HelperClasses
class Links {

companion object {
var urlChar = "[^\\s\"<>\\]\\[\\(\\)]"
//var urlChar = "[^\\s\"<>\\]\\[\\(\\)]"
var urlChar = "[^\\s\"<>\\]\\[]"
var urlCharEnd = urlChar.replace("/]$/".toRegex(), ".,']"); // insert bad chars to end on
var imagePath ="(?:(?:\\.(?:tiff?|jpe?g|gif|png|svg|ico)|ipfs/[a-z\\d]{40,}))"
var domainPath = "(?:[-a-zA-Z0-9\\._]*[-a-zA-Z0-9])";
Expand Down
Expand Up @@ -8,7 +8,7 @@ class ProxifyUrl {
val rProxyDomain = "^http(s)?://steemit(dev|stage)?images.com/"
val rProxyDomainsDimensions = "http(s)?://steemit(dev|stage)?images.com/([0-9]+x[0-9]+)/"
val NATURAL_SIZE = "0x0/"
val img_proxy_prefix = "https://steemitdevimages.com/"
val img_proxy_prefix = "https://steemitimages.com/"


//returns the url which will be rendered
Expand Down

0 comments on commit b1f5640

Please sign in to comment.