summaryrefslogtreecommitdiffstats
path: root/fb.py
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-12-09 17:21:21 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-12-09 17:22:10 +0100
commit489a24f57b3f0b203aa47cd93c0260aa639298d8 (patch)
treed0b2ddbc1b8db67a1c3c010c23617ccb4678a877 /fb.py
parent6957094c427f129b651651fd10b0000827cd2403 (diff)
Fix ID extraction from URLs
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'fb.py')
-rwxr-xr-xfb.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/fb.py b/fb.py
index 6d1c2aa..6165365 100755
--- a/fb.py
+++ b/fb.py
@@ -574,6 +574,7 @@ class FBClient:
def extractId(self, arg):
arg = arg.replace(self.config['pastebin'], '')
+ arg = arg.strip('/')
match = re.match('^([^/]+)', arg)
id = match.group(0)
return id