File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,6 @@ def green
34
34
def cyan
35
35
"\e [1;36;40m#{ self } \e [0m"
36
36
end
37
-
38
- def ascii_only?
39
- self =~ Regexp . new ( '[\x00-\x08\x0b\x0c\x0e-\x19\x7f-\xff]' , nil , 'n' ) ? false : true
40
- end
41
37
end
42
38
43
39
class Msftidy
@@ -318,10 +314,6 @@ def check_badchars
318
314
end
319
315
end
320
316
321
- if not mod_title . ascii_only?
322
- error ( "Please avoid unicode or non-printable characters in module title." )
323
- end
324
-
325
317
# Since we're looking at the module title, this line clearly cannot be
326
318
# the author block, so no point to run more code below.
327
319
next
@@ -355,10 +347,6 @@ def check_badchars
355
347
error ( "No Twitter handles, please. Try leaving it in a comment instead." )
356
348
end
357
349
358
- if not author_name . ascii_only?
359
- error ( "Please avoid unicode or non-printable characters in Author" )
360
- end
361
-
362
350
unless author_name . empty?
363
351
author_open_brackets = author_name . scan ( '<' ) . size
364
352
author_close_brackets = author_name . scan ( '>' ) . size
You can’t perform that action at this time.
0 commit comments