Allow the separating space between // and OSS to be omitted.

This commit is contained in:
Sei Lisa 2017-08-25 21:50:16 +02:00 committed by Sei-Lisa
parent 1d9717b16b
commit b71c5e4287

View file

@ -12,7 +12,7 @@ def main(argc, argv):
return 1
# Regex that replaces a line with its OSS version when one's specified.
os_re = re.compile(r'^( *)(.*?)// OSS::(.*)$', re.MULTILINE)
os_re = re.compile(r'^( *)(.*?)// ?OSS::(.*)$', re.MULTILINE)
f = open(argv[1], "r");
s = f.read()