{"id":19966,"date":"2017-12-28T16:48:00","date_gmt":"2017-12-28T21:48:00","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=19966"},"modified":"2018-01-01T13:53:49","modified_gmt":"2018-01-01T18:53:49","slug":"ios-11-double-copying","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2017\/12\/28\/ios-11-double-copying\/","title":{"rendered":"iOS 11 Double Copying"},"content":{"rendered":"<p><a href=\"http:\/\/leancrew.com\/all-this\/2017\/12\/undoubling\/\">Dr. Drang<\/a>:<\/p>\n<blockquote cite=\"http:\/\/leancrew.com\/all-this\/2017\/12\/undoubling\/\">\n<p>There are some weird things going on with iOS&rsquo;s Copy item in the Share Sheet. I made a short Workflow to get around a problem I&rsquo;ve been having with it when trying to share the URL of a Washington Post story.<\/p>\n<p><a href=\"https:\/\/twitter.com\/drdrang\/status\/931899542055866368\">I mentioned the problem on Twitter<\/a> a few weeks ago: I&rsquo;m reading an article in the WaPo app that I want to link to. I bring up the Share Sheet, tap Copy, and switch to some other app I want to paste the URL into. Could be <a href=\"https:\/\/itunes.apple.com\/us\/app\/drafts-quick-capture\/id905337691?mt=8&amp;uo=4&amp;at=10I4Fv\">Drafts<\/a>, Notes, <a href=\"https:\/\/itunes.apple.com\/us\/app\/slack\/id618783545?mt=8&amp;uo=4&amp;at=10I4Fv\">Slack<\/a>, <a href=\"https:\/\/itunes.apple.com\/us\/app\/textastic-code-editor-6\/id1049254261?mt=8&amp;uo=4&amp;at=10I4Fv\">Textastic<\/a>&mdash;whatever. I then paste the URL and wait to see what happens. Depending on the app, I might get exactly what I expect (Notes and Textastic), or I might get a doubled version of the URL (Drafts and Slack).<\/p>\n<\/blockquote>\n<p>I&rsquo;ve seen this, too, copying from other apps. I wonder what&rsquo;s causing this.<\/p>\n\n<p>Update (2018-01-01): <a href=\"http:\/\/leancrew.com\/all-this\/2017\/12\/undoubling-redux\/\">Dr. Drang<\/a>:<\/p>\n<blockquote cite=\"http:\/\/leancrew.com\/all-this\/2017\/12\/undoubling-redux\/\">\n<p>Armed with these two bits of information, I started exploring and quickly confirmed that the text manipulation action in my workflow&mdash;the regex substitution that eliminates the superfluous URL&mdash;was unnecessary.<\/p>\n<p>In fact, it wasn&rsquo;t doing anything at all because the URL it was being fed wasn&rsquo;t doubled.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Dr. Drang: There are some weird things going on with iOS&rsquo;s Copy item in the Share Sheet. I made a short Workflow to get around a problem I&rsquo;ve been having with it when trying to share the URL of a Washington Post story. I mentioned the problem on Twitter a few weeks ago: I&rsquo;m reading [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[],"tags":[131,31,1472,26,234,489,1367],"class_list":["post-19966","post","type-post","status-publish","format-standard","hentry","tag-bug","tag-ios","tag-ios-11","tag-iosapp","tag-regex","tag-url","tag-workflow-app"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/19966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=19966"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/19966\/revisions"}],"predecessor-version":[{"id":19981,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/19966\/revisions\/19981"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=19966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=19966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=19966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}