@@ -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
@@ -541,10 +529,6 @@ def check_lines
541
529
src_ended = true if ln =~ /^__END__$/
542
530
next if src_ended
543
531
544
- if ln =~ /[\x00 -\x08 \x0b \x0c \x0e -\x19 \x7f -\xff ]/
545
- error ( "Unicode detected: #{ ln . inspect } " , idx )
546
- end
547
-
548
532
if ln =~ /[ \t ]$/
549
533
warn ( "Spaces at EOL" , idx )
550
534
end
0 commit comments