Skip to content

Commit

Permalink
refactor: Typescript narrowed { 縮小 => 限縮 }
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Feb 24, 2022
1 parent 1e1f509 commit afaa045
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/handleText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ export function handleText(content_old: string, info?: {
.replace(textToRegexp(/|/g), '解除安裝')
;
}
else if (/(JavaScript|InspectionGadgets|Php)Bundle.properties$/i.test(file))
{
content_new = content_new
.replace(textToRegexp(//g), '限縮')
;
}

return content_new
})
Expand Down
1 change: 1 addition & 0 deletions test/handle-text.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ function _handleTestsSetting(tests: ITSArrayListMaybeReadonly<ITestInput2>): Rec
function _initTests(data: Record<string, ITestConfig[]>, cwd: string)
{
Object.keys(data)
.sort()
.forEach((file) =>
{
_doTests(file, data[file], cwd)
Expand Down

0 comments on commit afaa045

Please sign in to comment.