From 073ee38eb42aa50000ac5337609001fe92c88b54 Mon Sep 17 00:00:00 2001 From: Marlen Brunner Date: Thu, 24 Jun 2021 16:47:24 -0700 Subject: [PATCH] :beetle: Hopefully fix apostrophes woes. Fix from https://github.com/Plaristote/sharepoint-ruby/issues/39 --- lib/sharepoint-properties.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sharepoint-properties.rb b/lib/sharepoint-properties.rb index aeff87b..2f199cd 100644 --- a/lib/sharepoint-properties.rb +++ b/lib/sharepoint-properties.rb @@ -79,7 +79,7 @@ def get_property property_name def get_deferred_property property_name deferred_data = @data[property_name]['__deferred'] - uri = deferred_data['uri'].gsub /^http.*\/_api\/web\//i, '' + uri = deferred_data['uri'].gsub(/^http.*\/_api\/web\//i, '').gsub(/%27/, '%27%27') @site.query :get, uri end