Skip to content

Commit

Permalink
rename_font: Fix renaming problem
Browse files Browse the repository at this point in the history
[why]
Fonts are not properly renamed

[how]
Obviously the original filenames differ when downloaded as github
action compared to run locally. The regex is adapted, so that blancs are
now optional.

Signed-off-by: Fini Jastrow <[email protected]>
  • Loading branch information
Finii committed Dec 7, 2021
1 parent 203324a commit 287b1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rename-font
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ parser.add_argument("--name", help="preferred family name")
parser.add_argument("--version", help="text to add to the existing version")
args = parser.parse_args()

SIL_TABLE = [('cascadia (code|mono)( pl)?', args.name), ]
SIL_TABLE = [('cascadia ?(code|mono)( ?pl)?', args.name), ]

fname = os.path.splitext(os.path.basename(args.orig))[0]
n = FontnameParser(fname)
Expand Down

0 comments on commit 287b1d9

Please sign in to comment.