We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 100a776 + 663b39c commit da13094Copy full SHA for da13094
websockify/token_plugins.py
@@ -1,6 +1,7 @@
1
import os
2
import sys
3
import time
4
+import re
5
6
class BasePlugin():
7
def __init__(self, src):
@@ -31,7 +32,7 @@ def _load_targets(self):
31
32
for line in [l.strip() for l in open(f).readlines()]:
33
if line and not line.startswith('#'):
34
try:
- tok, target = line.split(': ')
35
+ tok, target = re.split(':\s', line)
36
self._targets[tok] = target.strip().rsplit(':', 1)
37
except ValueError:
38
print("Syntax error in %s on line %d" % (self.source, index), file=sys.stderr)
0 commit comments