fix: allows anchor links in local files (enhance regex)#61
fix: allows anchor links in local files (enhance regex)#61rfineman wants to merge 2 commits intorstudio:mainfrom
Conversation
modify regex extraction of file anchor suffix
|
Thanks! Can you please give an example that motivates the change? |
|
Sure thing. I'm having an issue creating a png of a leaflet map given the change. mapview::mapshot2 is having the same issue. In order to convert a leaflet map, you first need to saveWidget as a local .html and then convert that resulting file to a .png. However, the new changes to file_url in v0.1.1 provides the wrong file pathway because it's copying the file twice. Here's an output of a small example. Create temp file
File path with current function
File path with revised function
Here's what it looks like with an anchor
|
Modified the regular expression for extracting the local file path and the anchor link.
This should improve the extraction from PR #36.