File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+
1
3
import json
2
4
import re
3
5
from uuid import uuid4
13
15
'is_snake_case' ,
14
16
'is_json' ,
15
17
'is_uuid' ,
18
+ 'is_ip' ,
16
19
'camel_case_to_snake' ,
17
20
'snake_case_to_camel' ,
18
21
'reverse' ,
@@ -208,6 +211,10 @@ def is_uuid(string):
208
211
return bool (UUID_RE .match (str (string )))
209
212
210
213
214
+ def is_ip (string ):
215
+ pass
216
+
217
+
211
218
# string manipulation functions
212
219
213
220
def reverse (string ):
@@ -289,7 +296,6 @@ def shuffle(string):
289
296
random .shuffle (s ) # shuffle the list
290
297
return '' .join (s ) # convert the shuffled list back to string
291
298
292
-
293
299
# NEW FUNCTIONS
294
300
# def is_multiline(string):
295
301
# pass
@@ -303,9 +309,6 @@ def shuffle(string):
303
309
# def slugify(string):
304
310
# pass
305
311
#
306
- # def is_ip(string):
307
- # pass
308
- #
309
312
# def contains_html(string):
310
313
# pass
311
314
#
Original file line number Diff line number Diff line change 1
- import re
2
- from unittest .case import TestCase
3
-
4
- from string_utils import *
1
+ # -*- coding: utf-8 -*-
5
2
3
+ from unittest .case import TestCase
6
4
from uuid import uuid4
7
-
8
5
import json
9
6
7
+ from string_utils import *
8
+
10
9
11
10
# string checking tests
12
11
You can’t perform that action at this time.
0 commit comments